summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/utils/sw_inventory.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/sw_inventory.py b/src/utils/sw_inventory.py
index 69c1f2c..b2d55c3 100644
--- a/src/utils/sw_inventory.py
+++ b/src/utils/sw_inventory.py
@@ -126,6 +126,7 @@ def get_package_set(mountpoint):
pkgset = _get_package_set_dpkg(dpkg_status_path)
osname = getlinuxversion(osrelease)
else:
- raise ValueError(f'Cannot fetch software inventory at {mountpoint}')
+ pkgset = set()
+ osname = "unknown"
# Legacy software inventory first element is the OS name
return [osname] + list(pkgset)