ubuntu-cpc: set default ext4 mount option commit=30

This allows to consolidate linux-kvm and linux-generic kernel
flavours. This brings the perfomance benefit of linux-kvm flavour to
all cloud and pre-installed images. It does trade data-safety.

LP: #2006511

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
tune2fs
Dimitri John Ledkov 2 years ago
parent e2c06f9109
commit dc3f8a6ea0
No known key found for this signature in database
GPG Key ID: 9B8EC849D5EF70ED

@ -72,7 +72,7 @@ if [ -n "${root_fs_label}" ]; then
sed -i "s,^[^#${bl}]*\([${bl}]*/[${bl}].*\),${lstr}\1," "${rootd}/etc/fstab"
fi
cat > /etc/fstab << EOM
LABEL=cloudimg-rootfs / ext4 discard,errors=remount-ro 0 1
LABEL=cloudimg-rootfs / ext4 discard,commit=30,errors=remount-ro 0 1
EOM
# for quantal and newer, add /etc/overlayroot.local.conf

Loading…
Cancel
Save