From 87389fbad3e1fe0cc9620cc74e28f422dba9281e Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 10 Dec 2019 11:31:38 -0500 Subject: [PATCH] pmbootstrap install: add --no-base option (!1843) --- pmb/install/_install.py | 2 ++ pmb/parse/arguments.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/pmb/install/_install.py b/pmb/install/_install.py index 1b067747..1e57b5d2 100644 --- a/pmb/install/_install.py +++ b/pmb/install/_install.py @@ -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 diff --git a/pmb/parse/arguments.py b/pmb/parse/arguments.py index 17c3372b..c879d37b 100644 --- a/pmb/parse/arguments.py +++ b/pmb/parse/arguments.py @@ -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")