require_programs: Debian: find kpartx and losetup
In Debian, /usr/sbin is not in PATH of regular users unless using sudo. Fix that pmbootstrap won't find kpartx and losetup in /usr/sbin, and complains about these even though they are installed.
Fix #2489 (closed)
Fix #2482 (closed)
Fix #2492 (closed)
Edited by Oliver Smith
Merge request reports
Activity
changed milestone to %3.0.0 critical path (blockers only!!)
mentioned in issue #2489 (closed)
Also fixes #2482 (closed)
- Resolved by Oliver Smith
I had a try. On
pmboostrap init
there is an error. With option--details-to-stdout
I can see:% losetup --json ERROR: [Errno 2] No such file or directory: 'losetup'
It's comming from the part where
losetup
is called with option--json
as a check:if "losetup" not in missing: # Check if losetup supports the --json argument. try: pmb.helpers.run.user(["losetup", "--json"], check=True) except RuntimeError: losetup_missing_json = True
In Debian it would need to be
/usr/sbin/losetup
with option--json
, unfortunately.
added 6 commits
-
d4201c7f...3b4b9cd0 - 3 commits from branch
postmarketOS:master
- 460df0d4 - require_programs: Debian: find kpartx and losetup
- f6070a51 - config: find required programs every time pmbootstrap is run
- e173dc1a - chroot: merge executibles_absolute_path() logic into require_programs()
Toggle commit list-
d4201c7f...3b4b9cd0 - 3 commits from branch
- Resolved by Oliver Smith
- Resolved by Oliver Smith
- Resolved by Oliver Smith
assigned to @ollieparanoid
added 11 commits
-
e173dc1a...ef9d6181 - 6 commits from branch
postmarketOS:master
- c4194759 - require_programs: Debian: find kpartx and losetup (MR 2475)
- 585c4772 - config: find required programs every time pmbootstrap is run (MR 2475)
- 765ba770 - chroot: merge executibles_absolute_path() logic into require_programs() (MR 2475)
- 54e55f26 - require_programs: run losetup with absolute path (MR 2475)
- ee154ccd - require_programs: losetup --json: set output=null (MR 2475)
Toggle commit list-
e173dc1a...ef9d6181 - 6 commits from branch
enabled an automatic merge when all merge checks for ee154ccd pass
Please register or sign in to reply