mirror of
https://gitlab.com/fedora/bootc/base-images.git
synced 2026-09-02 22:40:45 +00:00
bootc-base-imagectl: add --recommends
This just connects to the `recommends` treefile key currently for installing recommended RPMs during the transaction.
This commit is contained in:
parent
68aeb437fb
commit
6d3bbdb664
1 changed files with 3 additions and 0 deletions
|
|
@ -52,6 +52,8 @@ def run_build_rootfs(args):
|
|||
override_manifest['ostree-override-layers'].append(f'overlay/{base}')
|
||||
if args.no_docs:
|
||||
override_manifest['documentation'] = False
|
||||
if args.recommends:
|
||||
override_manifest['recommends'] = True
|
||||
if args.sysusers:
|
||||
override_manifest['sysusers'] = 'compose-forced'
|
||||
passwd_mode = 'nobody' if args.nobody_99 else 'none'
|
||||
|
|
@ -175,6 +177,7 @@ if __name__ == "__main__":
|
|||
build_rootfs.add_argument("--cachedir", help="Cache repo metadata and RPMs in specified directory", action='store', default='')
|
||||
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("--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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue