]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix conf with settings in Content instead of Build
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Wed, 16 Oct 2024 13:33:05 +0000 (15:33 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Wed, 16 Oct 2024 14:41:45 +0000 (16:41 +0200)
Follow-up for 6912dc0ea0c7e20900a9b5d2c43343c1c782e91c

.github/workflows/ci.yml
docs/building-rpms-from-source.md
mkosi.conf.d/30-debian-kali-ubuntu/mkosi.conf.d/20-ext4-orphan-file.conf
mkosi/resources/man/mkosi.1.md
tests/test_config.py

index de94cc67440ced66d9e75545447cdcda9001e2fd..29e1ded8f4607ffdab9b1e85f5887196e6ba56b8 100644 (file)
@@ -169,6 +169,8 @@ jobs:
 
           [Content]
           KernelCommandLine=systemd.default_device_timeout_sec=180
+
+          [Build]
           Environment=SYSTEMD_REPART_MKFS_OPTIONS_EROFS="--quiet"
 
           [Host]
index 14fd814519e93a37d8fb719205b391dcd85364b3..46bd34c28fc3e1640623663ea716c067a1737f23 100644 (file)
@@ -29,7 +29,7 @@ when running mkosi scripts by using the `BuildSources=` setting. For
 example, in `mkosi.local.conf`, we could have the following settings:
 
 ```conf
-[Content]
+[Build]
 BuildSources=../mkosi:mkosi
              ../fedora/mkosi:mkosi/rpm
 BuildSourcesEphemeral=yes
index 2109fb9ab4606ed8ce5f238edf063668c51f9088..75befe2e374ecbf5c75af2bb1b767ccb5d30d389 100644 (file)
@@ -4,7 +4,7 @@
 Distribution=ubuntu
 Release=jammy
 
-[Content]
+[Build]
 # "orphan_file" is enabled by default in recent versions of mkfs.ext4 but not supported by the Jammy kernel so we
 # explicitly disable it.
 Environment=SYSTEMD_REPART_MKFS_OPTIONS_EXT4="-O ^orphan_file"
index 307b4806234e85ec74845b93fb2407c12a923bf4..0d2c29f980c29d36f3b5b7f7790fecac935ae5a2 100644 (file)
@@ -1859,7 +1859,7 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`,
     path. For example, if we have a `mkosi.conf` file containing:
 
     ```ini
-    [Content]
+    [Build]
     BuildSources=../abc/qed:kernel
     ```
 
index 5084b6c79a312326288b7e8fc08348051842eccc..4cca01157d74a800f8b58d800eb086a44278ca00 100644 (file)
@@ -101,6 +101,8 @@ def test_parse_config(tmp_path: Path) -> None:
 
         [Content]
         Packages=abc
+
+        [Build]
         Environment=MY_KEY=MY_VALUE
 
         [Output]
@@ -420,7 +422,7 @@ def test_override_default(tmp_path: Path) -> None:
 
     (d / "mkosi.conf").write_text(
         """\
-        [Content]
+        [Build]
         Environment=MY_KEY=MY_VALUE
 
         [Host]
@@ -1097,7 +1099,7 @@ def test_specifiers(tmp_path: Path) -> None:
         OutputDirectory=abcde
         Output=test
 
-        [Content]
+        [Build]
         Environment=Distribution=%d
                     Release=%r
                     Architecture=%a
@@ -1115,7 +1117,7 @@ def test_specifiers(tmp_path: Path) -> None:
     (d / "mkosi.conf.d").mkdir()
     (d / "mkosi.conf.d/abc.conf").write_text(
         """\
-        [Content]
+        [Build]
         Environment=ConfigAbcDirectory=%D
                     ConfigAbcConfdir=%C
                     ConfigAbcPwd=%P
@@ -1124,7 +1126,7 @@ def test_specifiers(tmp_path: Path) -> None:
     (d / "mkosi.conf.d/qed").mkdir()
     (d / "mkosi.conf.d/qed/mkosi.conf").write_text(
         """
-        [Content]
+        [Build]
         Environment=ConfigQedDirectory=%D
                     ConfigQedConfdir=%C
                     ConfigQedPwd=%P
@@ -1213,7 +1215,7 @@ def test_environment(tmp_path: Path) -> None:
         [Config]
         PassEnvironment=PassThisEnv
 
-        [Content]
+        [Build]
         Environment=TestValue2=300
                     TestValue3=400
                     PassThisEnv=abc