@@ -660,7 +660,7 @@ def main():
660660 parser = argparse .ArgumentParser (description = "Build image layers using Bootc Image Builder and Podman." )
661661 parser .add_argument ("-d" , "--dry-run" , action = "store_true" , help = "Dry run: skip executing build commands." )
662662 parser .add_argument ("-f" , "--force-rebuild" , action = "store_true" , help = "Force rebuilding images that already exist." )
663- parser .add_argument ("-E" , "--no-extract-images" , action = "store_true" , help = "Skip container image extraction." )
663+ parser .add_argument ("-E" , "--no-extract-images" , action = "store_true" , help = "Skip container image extraction, template processing, and registry mirroring ." )
664664 parser .add_argument ("-X" , "--skip-all-builds" , action = "store_true" , help = "Skip all image builds." )
665665 parser .add_argument ("-b" , "--build-type" ,
666666 choices = ["image-bootc" , "image-installer" , "containerfile" , "container-encapsulate" ],
@@ -715,11 +715,11 @@ def main():
715715
716716 # Determine versions of RPM packages
717717 set_rpm_version_info_vars ()
718- # Prepare container images list for mirroring registries
719- common .delete_file (CONTAINER_LIST )
720718 if args .no_extract_images :
721- common .print_msg ("Skipping container image extraction" )
719+ common .print_msg ("Skipping container image extraction and mirroring " )
722720 else :
721+ # Prepare container images list for mirroring registries
722+ common .delete_file (CONTAINER_LIST )
723723 extract_container_images (SOURCE_VERSION , LOCAL_REPO , CONTAINER_LIST , args .dry_run )
724724 # The following images are specific to layers that use fake rpms built from source
725725 extract_container_images (f"4.{ FAKE_NEXT_MINOR_VERSION } .*" , NEXT_REPO , CONTAINER_LIST , args .dry_run )
@@ -738,20 +738,20 @@ def main():
738738 extract_container_images (BREW_EC_RELEASE_VERSION , BREW_REPO , CONTAINER_LIST , args .dry_run )
739739 if BREW_NIGHTLY_RELEASE_VERSION :
740740 extract_container_images (BREW_NIGHTLY_RELEASE_VERSION , BREW_REPO , CONTAINER_LIST , args .dry_run )
741- # Sort the images list, only leaving unique entries
742- common .sort_uniq_file (CONTAINER_LIST )
743- # Process package source templates
744- ipkgdir = f"{ SCRIPTDIR } /../package-sources-bootc"
745- for ifile in os .listdir (ipkgdir ):
746- # Create full path for output and input file names
747- ofile = os .path .join (BOOTC_IMAGE_DIR , ifile )
748- ifile = os .path .join (ipkgdir , ifile )
749- run_template_cmd (ifile , ofile , args .dry_run )
750-
751- tpldir = os .path .join (SCRIPTDIR , ".." , "image-blueprints-bootc" , "templates" )
752- process_template_files (tpldir , args .dry_run )
753- # Run the mirror registry
754- common .run_command ([f"{ SCRIPTDIR } /mirror_registry.sh" ], args .dry_run )
741+ # Sort the images list, only leaving unique entries
742+ common .sort_uniq_file (CONTAINER_LIST )
743+ # Process package source templates
744+ ipkgdir = f"{ SCRIPTDIR } /../package-sources-bootc"
745+ for ifile in os .listdir (ipkgdir ):
746+ # Create full path for output and input file names
747+ ofile = os .path .join (BOOTC_IMAGE_DIR , ifile )
748+ ifile = os .path .join (ipkgdir , ifile )
749+ run_template_cmd (ifile , ofile , args .dry_run )
750+
751+ tpldir = os .path .join (SCRIPTDIR , ".." , "image-blueprints-bootc" , "templates" )
752+ process_template_files (tpldir , args .dry_run )
753+ # Run the mirror registry
754+ common .run_command ([f"{ SCRIPTDIR } /mirror_registry.sh" ], args .dry_run )
755755 # Skip all image builds
756756 if args .skip_all_builds :
757757 common .print_msg ("Skipping all image builds" )
0 commit comments