@@ -145,6 +145,10 @@ func cmdManifestWrapper(pbar progress.ProgressBar, cmd *cobra.Command, args []st
145145 if err != nil {
146146 return nil , err
147147 }
148+ rpmmdCacheDir , err := cmd .Flags ().GetString ("rpmmd-cache" )
149+ if err != nil {
150+ return nil , err
151+ }
148152 extraRepos , err := cmd .Flags ().GetStringArray ("extra-repo" )
149153 if err != nil {
150154 return nil , err
@@ -299,6 +303,7 @@ func cmdManifestWrapper(pbar progress.ProgressBar, cmd *cobra.Command, args []st
299303 IgnoreWarnings : ignoreWarnings ,
300304 CustomSeed : customSeed ,
301305 Subscription : subscription ,
306+ RpmmdCacheDir : rpmmdCacheDir ,
302307
303308 ForceRepos : forceRepos ,
304309 }
@@ -542,6 +547,7 @@ operating systems like Fedora, CentOS and RHEL with easy customizations support.
542547 manifestCmd .Flags ().Bool ("with-sbom" , false , `export SPDX SBOM document` )
543548 manifestCmd .Flags ().Bool ("ignore-warnings" , false , `ignore warnings during manifest generation` )
544549 manifestCmd .Flags ().String ("registrations" , "" , `filename of a registrations file with e.g. subscription details` )
550+ manifestCmd .Flags ().String ("rpmmd-cache" , "" , `osbuild directory to cache rpm metadata` )
545551 rootCmd .AddCommand (manifestCmd )
546552
547553 uploadCmd := & cobra.Command {
@@ -574,7 +580,6 @@ operating systems like Fedora, CentOS and RHEL with easy customizations support.
574580 buildCmd .Flags ().AddFlagSet (manifestCmd .Flags ())
575581 buildCmd .Flags ().Bool ("with-manifest" , false , `export osbuild manifest` )
576582 buildCmd .Flags ().Bool ("with-buildlog" , false , `export osbuild buildlog` )
577- // XXX: add --rpmmd cache too and put under /var/cache/image-builder/dnf
578583 buildCmd .Flags ().String ("cache" , "/var/cache/image-builder/store" , `osbuild directory to cache intermediate build artifacts"` )
579584 // XXX: add "--verbose" here, similar to how bib is doing this
580585 // (see https://github.com/osbuild/bootc-image-builder/pull/790/commits/5cec7ffd8a526e2ca1e8ada0ea18f927695dfe43)
0 commit comments