aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/fedora-autorelabel
diff options
context:
space:
mode:
authorVáclav Pavlín <vpavlin@redhat.com>2013-01-28 09:46:28 +0100
committerVáclav Pavlín <vpavlin@redhat.com>2013-01-28 09:46:28 +0100
commita572110dfafc51e5b5eee8fcfd1e0ca59f94202c (patch)
tree79e306b0cd03fad80388b183d44a4b07e51afe93 /systemd/fedora-autorelabel
parentdf519f69cba08847050ea467f35b46b5d75bb988 (diff)
downloadinitscripts-a572110dfafc51e5b5eee8fcfd1e0ca59f94202c.tar
initscripts-a572110dfafc51e5b5eee8fcfd1e0ca59f94202c.tar.gz
initscripts-a572110dfafc51e5b5eee8fcfd1e0ca59f94202c.tar.bz2
initscripts-a572110dfafc51e5b5eee8fcfd1e0ca59f94202c.tar.xz
initscripts-a572110dfafc51e5b5eee8fcfd1e0ca59f94202c.zip
Allow passing -F from /.autorelabel to fixfiles when relabeling system
(#904279)
Diffstat (limited to 'systemd/fedora-autorelabel')
-rwxr-xr-xsystemd/fedora-autorelabel3
1 files changed, 2 insertions, 1 deletions
diff --git a/systemd/fedora-autorelabel b/systemd/fedora-autorelabel
index 689908a7..7cb9b40c 100755
--- a/systemd/fedora-autorelabel
+++ b/systemd/fedora-autorelabel
@@ -27,7 +27,8 @@ relabel_selinux() {
echo $"*** Relabeling could take a very long time, depending on file"
echo $"*** system size and speed of hard drives."
- /sbin/fixfiles restore > /dev/null 2>&1
+ FORCE=`cat /.autorelabel`
+ /sbin/fixfiles $FORCE restore > /dev/null 2>&1
fi
rm -f /.autorelabel
systemctl --force reboot