Without this fix, the script tries to remount the filesystem read-only which (mostly) fails and returns an error. Also, running quotacheck two times is not needed.
@@ -50,9 +50,7 @@ fi
# Adding v2 group and user quota index
if [ ! -e "$mnt/aquota.user" ] || [ ! -e "$mnt/aquota.group" ]; then
- quotaoff $mnt
- quotacheck -cug $mnt >/dev/null 2>&1
- quotacheck -aug >/dev/null 2>&1
+ quotacheck -avcugm >/dev/null 2>&1
fi
# Adding quotacheck on reboot