Skip to content
Snippets Groups Projects

require_programs: Debian: find kpartx and losetup

Merged Oliver Smith requested to merge ollieparanoid/pmbootstrap:fix-debian-init into master
All threads resolved!
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
+ 3
2
@@ -48,9 +48,10 @@ def require_programs() -> None:
losetup_missing_json = False
if "losetup" not in missing:
# Check if losetup supports the --json argument.
# Check if losetup supports the --json argument. Use the absolute path
# here, so it works in Debian too without using sudo.
try:
pmb.helpers.run.user(["losetup", "--json"], check=True)
pmb.helpers.run.user([pmb.config.required_programs["losetup"], "--json"], check=True)
except RuntimeError:
losetup_missing_json = True
Loading