Some fixes found while testing #7

Closed
rskthomas wants to merge 6 commits from inxi_bugfix into issue_5__vcs_and_inxi
3 changed files with 3 additions and 3 deletions

View File

@ -327,7 +327,7 @@ echo 'Install requirements'
apt-get install -y --no-install-recommends \
sudo locales keyboard-configuration console-setup qrencode \
python-is-python3 python3 python3-dev python3-pip pipenv \
dmidecode smartmontools hwinfo pciutils lshw nfs-common < /dev/null
dmidecode smartmontools hwinfo pciutils lshw nfs-common inxi < /dev/null
# Install lshw B02.19 utility using backports (DEPRECATED in Debian 12)
#apt install -y -t ${VERSION_CODENAME}-backports lshw < /dev/null

View File

@ -9,7 +9,7 @@ set -u
set -x
main() {
sudo apt install smartmontools lshw hwinfo dmidecode
sudo apt install qrencode smartmontools lshw hwinfo dmidecode inxi
}
main "${@}"

View File

@ -310,7 +310,7 @@ def save_snapshot_in_disk(snapshot, path, snap_uuid):
def send_snapshot_to_devicehub(snapshot, token, url):
url_components = urllib.parse.urlparse(url)
ev_path = "evidence/{}".format(snapshot["uuid"])
components = (url_components.schema, url_components.netloc, ev_path, '', '', '')
components = (url_components.scheme, url_components.netloc, ev_path, '', '', '')
ev_url = urllib.parse.urlunparse(components)
# apt install qrencode
qr = "echo {} | qrencode -t ANSI".format(ev_url)