]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
selinux: call emergency_shell for failures
authorHarald Hoyer <harald@redhat.com>
Wed, 2 Feb 2011 14:10:42 +0000 (15:10 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 2 Feb 2011 14:10:42 +0000 (15:10 +0100)
modules.d/98selinux/selinux-loadpolicy.sh

index 7cb794b68969fe05a072e9175633b17314dc1391..86a99e9da471a6671dc8f256bdaed5274e76c290 100755 (executable)
@@ -52,7 +52,7 @@ rd_load_policy()
         if [ $ret -eq 3 -o $permissive -eq 0 ]; then
             warn "Machine in enforcing mode."
             warn "Not continuing"
-            sleep 100d
+            emergency_shell -n selinux
             exit 1
         fi
         return 0
@@ -60,7 +60,7 @@ rd_load_policy()
         warn "Machine in enforcing mode and cannot execute load_policy."
         warn "To disable selinux, add selinux=0 to the kernel command line."
         warn "Not continuing"
-        sleep 100d
+        emergency_shell -n selinux
         exit 1
     fi
 }