dcavalca / rpms / initscripts

Forked from rpms/initscripts 4 years ago
Clone

Blame SOURCES/0001-autorelabel-turn-quota-off-before-relabeling.patch

1ea338
From b399247905d9d4a9d12bb3f17b6d085dfbd674c8 Mon Sep 17 00:00:00 2001
1ea338
From: Lukas Nykryn <lnykryn@redhat.com>
1ea338
Date: Mon, 14 Mar 2016 20:24:31 +0100
1ea338
Subject: [PATCH] autorelabel: turn quota off before relabeling
1ea338
1ea338
---
1ea338
 systemd/rhel-autorelabel | 1 +
1ea338
 1 file changed, 1 insertion(+)
1ea338
1ea338
diff --git a/systemd/rhel-autorelabel b/systemd/rhel-autorelabel
1ea338
index 924df8e..d87acd2 100755
1ea338
--- a/systemd/rhel-autorelabel
1ea338
+++ b/systemd/rhel-autorelabel
1ea338
@@ -28,6 +28,7 @@ relabel_selinux() {
1ea338
 	echo $"*** system size and speed of hard drives."
1ea338
 
1ea338
 	FORCE=`cat /.autorelabel`
1ea338
+        [ -x "/usr/sbin/quotaoff" ] && /usr/sbin/quotaoff -aug
1ea338
 	/sbin/fixfiles $FORCE restore > /dev/null 2>&1
1ea338
     fi
1ea338
     rm -f  /.autorelabel
1ea338
-- 
1ea338
2.4.3
1ea338