aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2016-03-14 20:24:31 +0100
committerLukas Nykryn <lnykryn@redhat.com>2016-03-14 20:26:17 +0100
commitb399247905d9d4a9d12bb3f17b6d085dfbd674c8 (patch)
tree12827fc3225c4ad08fa62f9846513d5714f186ca
parent46f5c65d242efafcc27c5da23d0f0d8387ba7250 (diff)
downloadinitscripts-b399247905d9d4a9d12bb3f17b6d085dfbd674c8.tar
initscripts-b399247905d9d4a9d12bb3f17b6d085dfbd674c8.tar.gz
initscripts-b399247905d9d4a9d12bb3f17b6d085dfbd674c8.tar.bz2
initscripts-b399247905d9d4a9d12bb3f17b6d085dfbd674c8.tar.xz
initscripts-b399247905d9d4a9d12bb3f17b6d085dfbd674c8.zip
autorelabel: turn quota off before relabeling
-rwxr-xr-xsystemd/rhel-autorelabel1
1 files changed, 1 insertions, 0 deletions
diff --git a/systemd/rhel-autorelabel b/systemd/rhel-autorelabel
index 924df8e3..d87acd29 100755
--- a/systemd/rhel-autorelabel
+++ b/systemd/rhel-autorelabel
@@ -28,6 +28,7 @@ relabel_selinux() {
echo $"*** system size and speed of hard drives."
FORCE=`cat /.autorelabel`
+ [ -x "/usr/sbin/quotaoff" ] && /usr/sbin/quotaoff -aug
/sbin/fixfiles $FORCE restore > /dev/null 2>&1
fi
rm -f /.autorelabel