Skip to content

Commit 65f633f

Browse files
committed
turn off metadata_csm
not all older kernels support it, and it really doesn't matter for build jobs. this allows to remove ext4.allow_unsupported=1 this flag is only available in sle12 and sle15, and since those default to ext3 anyway there is no need to set it. this also fixes ext4 for all non-suse distros.
1 parent a40a316 commit 65f633f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build-vm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@
2121
#
2222
################################################################
2323

24-
# ignore not backward compatible ext fs options like metadata_csum
2524
# Only protecting nonroot from root inside guest -> but anyone can be root inside guest
2625
# so disabling spectre/meltdown mitigations doesn't hurt security and gains performance
27-
vm_linux_kernel_parameter="ext4.allow_unsupported=1 mitigations=off"
26+
vm_linux_kernel_parameter="mitigations=off"
2827
# Make sure that dodgy kernels fail quickly and early
2928
vm_linux_always_append="oops=panic panic=1 quiet"
3029

@@ -398,7 +397,7 @@ vm_img_mkfs() {
398397
esac
399398

400399
# defaults for creating the filesystem
401-
vm_img_mkfs_ext4_options='-O ^has_journal,^huge_file,^resize_inode,sparse_super'
400+
vm_img_mkfs_ext4_options='-O ^has_journal,^huge_file,^resize_inode,sparse_super,^metadata_csum'
402401
vm_img_mkfs_ext4_extra='-E lazy_itable_init,discard'
403402
vm_img_mkfs_ext4="mkfs.ext4 -m 0 -q -F $vm_img_mkfs_ext4_options"
404403
vm_img_mkfs_ext3='mkfs.ext3 -m 0 -q -F'

0 commit comments

Comments
 (0)