forked from Mirror/pmbootstrap
pmb.chroot: install() make chroot a required argument (MR 2252)
Defaulting to the native chroot isn't necessarily intuitive. Let's require this be specified in full. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
3322eab30c
commit
2e68f40dd4
8 changed files with 19 additions and 18 deletions
|
@ -8,6 +8,7 @@ import pmb.helpers.run
|
|||
import pmb.chroot.root
|
||||
import pmb.chroot.user
|
||||
import pmb.chroot.other
|
||||
import pmb.chroot.apk
|
||||
from pmb.core import Chroot
|
||||
|
||||
|
||||
|
@ -79,7 +80,7 @@ def bootimg(args: PmbArgs, path: Path):
|
|||
logging.info("NOTE: You will be prompted for your sudo/doas password, so"
|
||||
" we can set up a chroot to extract and analyze your"
|
||||
" boot.img file")
|
||||
pmb.chroot.apk.install(args, ["file", "unpackbootimg"])
|
||||
pmb.chroot.apk.install(args, ["file", "unpackbootimg"], Chroot.native())
|
||||
|
||||
temp_path = pmb.chroot.other.tempfolder(args, Path("/tmp/bootimg_parser"))
|
||||
bootimg_path = Chroot.native() / temp_path / "boot.img"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue