Skip to content

Commit 7973b34

Browse files
authored
Fix quota
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.
1 parent f014e38 commit 7973b34

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bin/v-add-sys-quota

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ fi
5050

5151
# Adding v2 group and user quota index
5252
if [ ! -e "$mnt/aquota.user" ] || [ ! -e "$mnt/aquota.group" ]; then
53-
quotaoff $mnt
54-
quotacheck -cug $mnt >/dev/null 2>&1
55-
quotacheck -aug >/dev/null 2>&1
53+
quotacheck -avcugm >/dev/null 2>&1
5654
fi
5755

5856
# Adding quotacheck on reboot

0 commit comments

Comments
 (0)