From 371c2b4b8e2f438c748b7fb9eb3ce3f6f99cf3c6 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Thu, 13 Aug 2015 15:35:02 +0200 Subject: [PATCH] rc.sysinit: apply quotas after system is relabeled --- rc.d/rc.sysinit | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index a81c0bc..2521ab5 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -519,15 +519,6 @@ else action $"Mounting local filesystems: " mount -a -n -t nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2i,glusterfs -O no_netdev fi -# Update quotas if necessary -if [ X"$_RUN_QUOTACHECK" = X1 -a -x /sbin/quotacheck ]; then - action $"Checking local filesystem quotas: " /sbin/quotacheck -anug -fi - -if [ -x /sbin/quotaon ]; then - action $"Enabling local filesystem quotas: " /sbin/quotaon -aug -fi - # Check to see if a full relabel is needed if [ -n "$SELINUX_STATE" -a "$READONLY" != "yes" ]; then if [ -f /.autorelabel ] || strstr "$cmdline" autorelabel ; then @@ -539,6 +530,15 @@ else fi fi +# Update quotas if necessary +if [ X"$_RUN_QUOTACHECK" = X1 -a -x /sbin/quotacheck ]; then + action $"Checking local filesystem quotas: " /sbin/quotacheck -anug +fi + +if [ -x /sbin/quotaon ]; then + action $"Enabling local filesystem quotas: " /sbin/quotaon -aug +fi + # Initialize pseudo-random number generator if [ -f "/var/lib/random-seed" ]; then cat /var/lib/random-seed > /dev/urandom -- 2.4.3