Unregister all binfmt architectures during pmbootstrap shutdown (#822)

* Unregister all binfmt architectures during `pmbootstrap shutdown`
* Remove `-r, --rootfs` argument from `pmbootstrap build_init` command
This commit is contained in:
drebrez 2017-10-26 00:54:17 +02:00 committed by Oliver Smith
parent df47b50013
commit 732a94fd45
3 changed files with 7 additions and 6 deletions

View file

@ -189,8 +189,9 @@ def arguments():
" to execute inside the chroot. default: sh", nargs='*')
for action in [build_init, chroot]:
suffix = action.add_mutually_exclusive_group()
suffix.add_argument("-r", "--rootfs", action="store_true",
help="Chroot for the device root file system")
if action == chroot:
suffix.add_argument("-r", "--rootfs", action="store_true",
help="Chroot for the device root file system")
suffix.add_argument("-b", "--buildroot", action="store_true",
help="Chroot for building packages for the device "
"architecture")