From: Shrikant Bobade <shrikant_bob...@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_bob...@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

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to