From 3a570bbc27d3013e223b22a5a32546d0450b612a Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Wed, 5 Nov 2025 10:08:47 -0500 Subject: [PATCH] bootc-base-imagectl: add --no-initramfs This just connects to the `no-initramfs` treefile key that was added in https://github.com/coreos/rpm-ostree/pull/5529. --- bootc-base-imagectl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootc-base-imagectl b/bootc-base-imagectl index e9c5cc4..33f832a 100755 --- a/bootc-base-imagectl +++ b/bootc-base-imagectl @@ -54,6 +54,8 @@ def run_build_rootfs(args): override_manifest['documentation'] = False if args.recommends: override_manifest['recommends'] = True + if args.no_initramfs: + override_manifest['no-initramfs'] = True if args.sysusers: override_manifest['sysusers'] = 'compose-forced' passwd_mode = 'nobody' if args.nobody_99 else 'none' @@ -178,6 +180,7 @@ if __name__ == "__main__": build_rootfs.add_argument("--add-dir", help='Copy dir contents into the target', action='append', default=[], metavar='DIR') build_rootfs.add_argument("--no-docs", help="Don't install documentation", action='store_true') build_rootfs.add_argument("--recommends", help="Whether to install recommended packages", action='store_true') + build_rootfs.add_argument("--no-initramfs", help="Whether to generate an initramfs for the roots", action='store_true') build_rootfs.add_argument("--sysusers", help="Run systemd-sysusers instead of injecting hardcoded passwd/group entries", action='store_true') build_rootfs.add_argument("--nobody-99", help=argparse.SUPPRESS, action='store_true') build_rootfs.add_argument("--repo", help="Enable specific repositories only", action='append', default=[], metavar='REPO')