aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-07-09 06:36:01 +0200
committerSven Gothel <[email protected]>2021-07-09 06:36:01 +0200
commita1dcecb90e676814b47731ffec8be7a2b4e34e20 (patch)
tree43e4dae6e709363d2cb99ad13b4e0ef5259adc02
parentc3ec1f31fc40af3357016ef7c16fa77b3b04d7ee (diff)
qcow2_handling mkfs.ext4: Reenable dropping 'huge_file' feature and 'has_journal' for writable image
-rw-r--r--scripts/qcow2_handling6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/qcow2_handling b/scripts/qcow2_handling
index b11a9b9..26b5135 100644
--- a/scripts/qcow2_handling
+++ b/scripts/qcow2_handling
@@ -196,10 +196,10 @@ EOF
kpartx -a $NBD_DEV
mkfs.fat -n BOOT -F 32 -v $MAP_BOOT_DEV
if [ "${ROOTFS_RO}" = "1" ] ; then
- # Set reserved-blocks-percentage for root to zero
- mkfs.ext4 -L ROOTFS -m 0 -O "^has_journal,^metadata_csum,^64bit" $MAP_ROOT_DEV
+ # Set reserved-blocks-percentage for root to zero, no journaling
+ mkfs.ext4 -L ROOTFS -m 0 -O "^has_journal,^huge_file,^metadata_csum,^64bit" $MAP_ROOT_DEV
else
- mkfs.ext4 -L ROOTFS -O "^has_journal,^metadata_csum,^64bit" $MAP_ROOT_DEV
+ mkfs.ext4 -L ROOTFS -O "^huge_file,^metadata_csum,^64bit" $MAP_ROOT_DEV
fi
sync
else