[yocto] [meta-selinux][PATCH 2/3] selinux-init: update for systemd

Shrikant Bobade bobadeshrikant at gmail.com
Wed Nov 19 00:13:38 PST 2014


From: Shrikant Bobade <Shrikant_Bobade at mentor.com>

selinux-init.sh updated to reboot system
normally to fix the labelling during systemd
execution. Due to force reboot labelling won't
be proper and system continuously reboot to
label it like first time boot.

Signed-off-by: Shrikant Bobade <Shrikant_Bobade at mentor.com>
---
 .../selinux/selinux-config/selinux-init.sh         |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-security/selinux/selinux-config/selinux-init.sh b/recipes-security/selinux/selinux-config/selinux-init.sh
index 9aaf454..f9f0914 100644
--- a/recipes-security/selinux/selinux-config/selinux-init.sh
+++ b/recipes-security/selinux/selinux-config/selinux-init.sh
@@ -48,7 +48,7 @@ if [ -f /.autorelabel ]; then
 	${FIXFILES} -F -f relabel
 	/bin/rm -f /.autorelabel
 	echo " * Relabel done, rebooting the system."
-	/sbin/reboot -f
+	/sbin/reboot
 fi
 
 # If first booting, the security context type of init would be
@@ -62,7 +62,7 @@ if [ "`${SECON} -t --pid 1`" = "kernel_t" ]; then
 	${RESTORECON} -RF /
 	${RESTORECON} -F /
 	echo " * Relabel done, rebooting the system."
-	/sbin/reboot -f
+	/sbin/reboot
 fi
 
 # Now, we should relabel /dev for most services.
-- 
1.7.9.5




More information about the yocto mailing list