pmbootstrap install: add --no-base option (!1843)

This commit is contained in:
Drew DeVault 2019-12-10 11:31:38 -05:00 committed by Oliver Smith
parent b63b021c21
commit 87389fbad3
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
2 changed files with 5 additions and 0 deletions

View File

@ -489,6 +489,8 @@ def install(args):
["device-" + args.device] +
get_kernel_package(args, args.device) +
get_nonfree_packages(args, args.device))
if not args.install_base:
install_packages = [p for p in install_packages if p != "postmarketos-base"]
if args.ui.lower() != "none":
install_packages += ["postmarketos-ui-" + args.ui]
suffix = "rootfs_" + args.device

View File

@ -479,6 +479,9 @@ def arguments():
install.add_argument("--recovery-no-kernel",
help="do not overwrite the existing kernel",
action="store_false", dest="recovery_flash_kernel")
install.add_argument("--no-base",
help="do not install postmarketos-base (advanced)",
action="store_false", dest="install_base")
# Action: checksum / aportgen / build
checksum = sub.add_parser("checksum", help="update aport checksums")