Enable lazy initialization of ext3/ext4 filesystems

This commit is contained in:
Alexander Block
2016-12-18 11:08:51 +01:00
parent 01b9d49673
commit 13a2bc8afb
5 changed files with 9 additions and 12 deletions

View File

@@ -71,7 +71,7 @@ function safe-format-and-mount() {
# Format only if the disk is not already formatted.
if ! tune2fs -l "${device}" ; then
echo "Formatting '${device}'"
mkfs.ext4 -F -E lazy_itable_init=0,lazy_journal_init=0,discard "${device}"
mkfs.ext4 -F "${device}"
fi
mkdir -p "${mountpoint}"