]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Move ConfigureScripts= to [Config] section
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 27 Mar 2024 13:38:51 +0000 (14:38 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 27 Mar 2024 13:38:51 +0000 (14:38 +0100)
mkosi/config.py
mkosi/resources/mkosi.md

index 7b94d4f24f2b9b8e3d6ad138ec9e852b9e3a8ac0..d1aea42f15d774f0ff3890bbc7252e97841e4088 100644 (file)
@@ -1728,6 +1728,15 @@ SETTINGS = (
         parse=config_parse_minimum_version,
         help="Specify the minimum required mkosi version",
     ),
+    ConfigSetting(
+        dest="configure_scripts",
+        long="--configure-script",
+        metavar="PATH",
+        section="Config",
+        parse=config_make_list_parser(delimiter=",", parse=make_path_parser()),
+        paths=("mkosi.configure",),
+        help="Configure script to run before doing anything",
+    ),
     ConfigSetting(
         dest="distribution",
         short="-d",
@@ -2076,15 +2085,6 @@ SETTINGS = (
         default_factory_depends=("environment",),
         help="Set the $SOURCE_DATE_EPOCH timestamp",
     ),
-    ConfigSetting(
-        dest="configure_scripts",
-        long="--configure-script",
-        metavar="PATH",
-        section="Content",
-        parse=config_make_list_parser(delimiter=",", parse=make_path_parser()),
-        paths=("mkosi.configure",),
-        help="Configure script to run before doing anything",
-    ),
     ConfigSetting(
         dest="sync_scripts",
         long="--sync-script",
@@ -3697,6 +3697,7 @@ def summary(config: Config) -> str:
                              Images: {line_join_list(config.images)}
                        Dependencies: {line_join_list(config.dependencies)}
                     Minimum Version: {none_to_none(config.minimum_version)}
+                  Configure Scripts: {line_join_list(config.configure_scripts)}
 
     {bold("DISTRIBUTION")}:
                        Distribution: {bold(config.distribution)}
@@ -3744,7 +3745,6 @@ def summary(config: Config) -> str:
      Clean Package Manager Metadata: {config.clean_package_metadata}
                   Source Date Epoch: {none_to_none(config.source_date_epoch)}
 
-                  Configure Scripts: {line_join_list(config.configure_scripts)}
                        Sync Scripts: {line_join_list(config.sync_scripts)}
                     Prepare Scripts: {line_join_list(config.prepare_scripts)}
                       Build Scripts: {line_join_list(config.build_scripts)}
index 6dd64c36963ab1638ac3b3da6062f014341f8a44..b33914bd3183ccbd7ab99b28314edf77b0df6628 100644 (file)
@@ -543,6 +543,12 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`,
 : The minimum mkosi version required to build this configuration. If
   specified multiple times, the highest specified version is used.
 
+`ConfigureScripts=`, `--configure-script=`
+
+: Takes a comma-separated list of paths to executables that are used as
+  the configure scripts for this image. See the **Scripts** section for
+  more information.
+
 ### [Distribution] Section
 
 `Distribution=`, `--distribution=`, `-d`
@@ -1026,12 +1032,6 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`,
   package manager executable is *not* present at the end of the
   installation.
 
-`ConfigureScripts=`, `--configure-script=`
-
-: Takes a comma-separated list of paths to executables that are used as
-  the configure scripts for this image. See the **Scripts** section for
-  more information.
-
 `SyncScripts=`, `--sync-script=`
 
 : Takes a comma-separated list of paths to executables that are used as