]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
centos: Add missing base features for ext4 on c8s
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 17 Mar 2023 12:46:52 +0000 (13:46 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 17 Mar 2023 15:48:25 +0000 (16:48 +0100)
Accidentally only added the ext4 specific features and none of the
base features, let's make sure we add the base features as well,
especially sparse_super is important to make repart's minimize
guessing logic work properly.

mkosi/distributions/centos.py

index f33e2e967bcf26b8196be547cde28aa9c852bc13..9f8f65b870207eec73ce7fa9137b33a621f5e81d 100644 (file)
@@ -43,7 +43,23 @@ class CentosInstaller(DistributionInstaller):
 
         return {
             "8": {
-                "ext4": ["-O", "none,has_journal,extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize"],
+                "ext4": ["-O", ",".join([
+                    "none",
+                    "sparse_super",
+                    "large_file",
+                    "filetype",
+                    "resize_inode",
+                    "dir_index",
+                    "ext_attr",
+                    "has_journal",
+                    "extent",
+                    "huge_file",
+                    "flex_bg",
+                    "metadata_csum",
+                    "64bit",
+                    "dir_nlink",
+                    "extra_isize"
+                ])],
             },
         }.get(state.config.release, {})