pmbootstrap install: add --no-base option (!1843)
This commit is contained in:
parent
b63b021c21
commit
87389fbad3
|
@ -489,6 +489,8 @@ def install(args):
|
||||||
["device-" + args.device] +
|
["device-" + args.device] +
|
||||||
get_kernel_package(args, args.device) +
|
get_kernel_package(args, args.device) +
|
||||||
get_nonfree_packages(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":
|
if args.ui.lower() != "none":
|
||||||
install_packages += ["postmarketos-ui-" + args.ui]
|
install_packages += ["postmarketos-ui-" + args.ui]
|
||||||
suffix = "rootfs_" + args.device
|
suffix = "rootfs_" + args.device
|
||||||
|
|
|
@ -479,6 +479,9 @@ def arguments():
|
||||||
install.add_argument("--recovery-no-kernel",
|
install.add_argument("--recovery-no-kernel",
|
||||||
help="do not overwrite the existing kernel",
|
help="do not overwrite the existing kernel",
|
||||||
action="store_false", dest="recovery_flash_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
|
# Action: checksum / aportgen / build
|
||||||
checksum = sub.add_parser("checksum", help="update aport checksums")
|
checksum = sub.add_parser("checksum", help="update aport checksums")
|
||||||
|
|
Loading…
Reference in New Issue