]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Mark various settings as universal
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 12 Jul 2024 12:27:02 +0000 (14:27 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 12 Jul 2024 12:59:31 +0000 (14:59 +0200)
Let's make BuildSources=, BuildSourcesEphemeral=, WithTests= and
WithNetwork= universal so that packages can easily be built in a
subimage instead of in the main image build.

mkosi/config.py
mkosi/resources/mkosi.md

index 76b4e7f72296a132a30abbdcaca9125ae4656c98..fa23af146c1f0b6bcf79ffb2c4c002e8d276fe52 100644 (file)
@@ -2357,6 +2357,7 @@ SETTINGS = (
         match=config_match_build_sources,
         default_factory=lambda ns: [ConfigTree(ns.directory, None)] if ns.directory else [],
         help="Path for sources to build",
+        universal=True,
     ),
     ConfigSetting(
         dest="build_sources_ephemeral",
@@ -2364,6 +2365,7 @@ SETTINGS = (
         section="Content",
         parse=config_parse_boolean,
         help="Make build sources ephemeral when running scripts",
+        universal=True,
     ),
     ConfigSetting(
         dest="environment",
@@ -2393,6 +2395,7 @@ SETTINGS = (
         parse=config_parse_boolean,
         default=True,
         help="Do not run tests as part of build scripts, if supported",
+        universal=True,
     ),
     ConfigSetting(
         dest="with_network",
@@ -2401,6 +2404,7 @@ SETTINGS = (
         section="Content",
         parse=config_parse_boolean,
         help="Run build and postinst scripts with network access (instead of private network)",
+        universal=True,
     ),
     ConfigSetting(
         dest="bootable",
index 6ba9e5a64a5c444df65107ce4025ebdcac96fb05..15f8d13eafc7d33b302ea5ce9d6dcf3e16bd79c6 100644 (file)
@@ -2484,6 +2484,10 @@ overridden):
 - `PackageDirectories=`
 - `VolatilePackageDirectories=`
 - `SourceDateEpoch=`
+- `BuildSources=`
+- `BuildSourcesEphemeral=`
+- `WithTests`
+- `WithNetwork=`
 - `VerityKey=`
 - `VerityKeySource=`
 - `VerityCertificate=`