aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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..