aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2015-08-13 15:35:02 +0200
committerLukas Nykryn <lnykryn@redhat.com>2015-08-13 15:35:02 +0200
commit371c2b4b8e2f438c748b7fb9eb3ce3f6f99cf3c6 (patch)
tree023df73ca03f1f6923653aef07bb60da84d7800c /rc.d
parent0ed6430cc34c7132ea5d5f4cad0f81e81297ec08 (diff)
downloadinitscripts-371c2b4b8e2f438c748b7fb9eb3ce3f6f99cf3c6.tar
initscripts-371c2b4b8e2f438c748b7fb9eb3ce3f6f99cf3c6.tar.gz
initscripts-371c2b4b8e2f438c748b7fb9eb3ce3f6f99cf3c6.tar.bz2
initscripts-371c2b4b8e2f438c748b7fb9eb3ce3f6f99cf3c6.tar.xz
initscripts-371c2b4b8e2f438c748b7fb9eb3ce3f6f99cf3c6.zip
rc.sysinit: apply quotas after system is relabeled
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit18
1 files changed, 9 insertions, 9 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index a81c0bc2..2521ab53 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