Merge pull request #224 from doraskayo/bwrap-error-and-docs

Mention bubblewrap bootstrap mode in error messages and documentation
This commit is contained in:
fosslinux 2023-01-15 14:53:00 +11:00 committed by GitHub
commit 0b7cd62f73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -156,8 +156,8 @@ sysc
sysc is the (current) last 'system' of live-bootstrap. This is a continuation sysc is the (current) last 'system' of live-bootstrap. This is a continuation
from sysb, executed through util-linux's ``switch_root`` command which moves from sysb, executed through util-linux's ``switch_root`` command which moves
the entire rootfs without a reboot. Every package from here on out is compiled the entire rootfs without a reboot. Every package from here on out is compiled
under this system, taking binaries from sysa. Chroot mode skips sysb, as it under this system, taking binaries from sysa. Chroot and bubblewrap modes skip
is obviously irrelevant for a chroot. sysb, as it is obviously irrelevant to them.
Python-less build Python-less build
----------------- -----------------

View file

@ -104,9 +104,10 @@ def main():
return count return count
if check_types() > 1: if check_types() > 1:
raise ValueError("No more than one of qemu, chroot, minikernel, bare metal may be used.") raise ValueError("No more than one of qemu, chroot, bwrap, minikernel, bare metal "
"may be used.")
if check_types() == 0: if check_types() == 0:
raise ValueError("One of qemu, chroot, minikernel or bare metal must be selected.") raise ValueError("One of qemu, chroot, bwrap, minikernel or bare metal must be selected.")
if args.bare_metal: if args.bare_metal:
args.no_create_config = True args.no_create_config = True