Commit 8af576f1 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

/data partition should be mounted with discard support to take advantage of...

/data partition should be mounted with discard support to take advantage of thinly provisioned images
parent 1c4928cb
......@@ -84,7 +84,7 @@ else
mount -o ro $rootfs /mnt/root
fi
mount $datafs /data
mount -o rw,discard $datafs /data
if [ -f /data/.factorydefault ]; then
echo "Resetting data partition to factory default"
......@@ -92,7 +92,7 @@ else
cat /mnt/root/usr/share/factorydefault/data.xz | unxz > $datafs
fsck.ext4 -f -y $datafs > /dev/null 2> /dev/null
resize2fs $datafs > /dev/null 2> /dev/null
mount $datafs /data
mount -o rw,discard $datafs /data
fi
monitors=`/bin/uci -q get -c /data/etc/config rbd.rbd.monitors`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment