Skip to content

Commit 7d1cd5c

Browse files
Merge pull request openSUSE#743 from dirkmueller/master
turn off metadata_csm
2 parents 183cbd1 + 932f2ea commit 7d1cd5c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: build-vm

+3-4
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'
@@ -662,7 +661,7 @@ vm_detect_2nd_stage() {
662661
# set date to build start on broken systems (now < build start)
663662
if test $(date '+%s') -lt $(date -r /.build/.date '+%s') ; then
664663
echo -n "WARNING: system has a broken clock, setting it to a newer time: "
665-
date -s `cat /.build/.date`
664+
date -s $(</.build/.date)
666665
fi
667666

668667
# Enable Core dump generation

0 commit comments

Comments
 (0)