aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-15 18:11:13 +0000
committerBill Nottingham <notting@redhat.com>2005-04-15 18:11:13 +0000
commit144d6b210f5333b32c9062650398fe21f4e71214 (patch)
tree879c4aa0812043a9dd2eb549a8d0cdd0ee66d23c
parent53a41d67f7b574a71e3f012f5413cc2aa398d3b7 (diff)
downloadinitscripts-144d6b210f5333b32c9062650398fe21f4e71214.tar
initscripts-144d6b210f5333b32c9062650398fe21f4e71214.tar.gz
initscripts-144d6b210f5333b32c9062650398fe21f4e71214.tar.bz2
initscripts-144d6b210f5333b32c9062650398fe21f4e71214.tar.xz
initscripts-144d6b210f5333b32c9062650398fe21f4e71214.zip
add a autorelabel boot target (#154496)
-rwxr-xr-xrc.d/rc.sysinit3
1 files changed, 3 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index ec78d5a5..94d1ccea 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -483,6 +483,9 @@ fi
if [ -n "$SELINUX" -a -f /.autorelabel ]; then
relabel_selinux
fi
+if [ -n "$SELINUX" -a strstr "$cmdline" autorelabel ]; then
+ relabel_selinux
+fi
# The root filesystem is now read-write, so we can now log
# via syslog() directly..