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
|
@ -23,7 +23,7 @@ def register(args: PmbArgs, arch):
|
|||
# always make sure the qemu-<arch> binary is installed, since registering
|
||||
# may happen outside of this method (e.g. by OS)
|
||||
if f"qemu-{arch_qemu}" not in pmb.chroot.apk.installed(args):
|
||||
pmb.chroot.apk.install(args, ["qemu-" + arch_qemu])
|
||||
pmb.chroot.apk.install(args, ["qemu-" + arch_qemu], Chroot.native())
|
||||
|
||||
if is_registered(arch_qemu):
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue