]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Don't set -O ^orphan_file in centos stream 9 tools tree
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 17 Jan 2025 15:39:09 +0000 (16:39 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 21 Jan 2025 09:57:29 +0000 (10:57 +0100)
mkosi.conf.d/10-centos/mkosi.conf
mkosi.conf.d/10-centos/mkosi.conf.d/10-orphan-file.conf [new file with mode: 0644]

index d2178315a2916a13b73146c9c9174045f235e24a..33ba3b8334452bc6bd64e004de28568f5a20a3f0 100644 (file)
@@ -12,9 +12,6 @@ Environment=
         # fails to mount on duplicate filesystem UUIDs which happens when running tests in parallel so we use
         # ext4 instead.
         SYSTEMD_REPART_OVERRIDE_FSTYPE_ROOT=ext4
-        # The kernel versions in CentOS Stream 9 doesn't support orphan_file, but later versions of
-        # mkfs.ext4 enabled it by default, so we disable it explicitly.
-        SYSTEMD_REPART_MKFS_OPTIONS_EXT4="-O ^orphan_file"
 
 [Content]
 Packages=
diff --git a/mkosi.conf.d/10-centos/mkosi.conf.d/10-orphan-file.conf b/mkosi.conf.d/10-centos/mkosi.conf.d/10-orphan-file.conf
new file mode 100644 (file)
index 0000000..075df65
--- /dev/null
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+ToolsTreeDistribution=|!centos
+ToolsTreeRelease=|!9
+
+[Build]
+# The kernel versions in CentOS Stream 9 doesn't support orphan_file, but later versions of
+# mkfs.ext4 enabled it by default, so we disable it explicitly. Except that older versions
+# of mkfs.ext4 don't know about "orphan_file" so we skip it on some tools tree variants where
+# we know "orphan_file" is not supported.
+Environment=
+        SYSTEMD_REPART_MKFS_OPTIONS_EXT4="-O ^orphan_file"