Oops, make it work
authorWarren Togami <wtogami@redhat.com>
Thu, 21 May 2009 19:16:44 +0000 (15:16 -0400)
committerWarren Togami <wtogami@redhat.com>
Thu, 21 May 2009 19:16:44 +0000 (15:16 -0400)
modules.d/99base/selinux-loadpolicy.sh

index 5597c49..c8e6925 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 # FIXME: load selinux policy.  this should really be done after we switchroot 
-[ -x "$NEWROOT/usr/sbin/load_policy" ] && [ -x "$NEWROOT/etc/sysconfig/selinux" ] {
+if [ -x "$NEWROOT/usr/sbin/load_policy" ] && [ -e "$NEWROOT/etc/sysconfig/selinux" ]; then
     chroot $NEWROOT /usr/sbin/load_policy -i
     if [ $? -eq 3 ]; then
        echo "Initial SELinux policy load failed and enforcing mode requested."
@@ -8,4 +8,4 @@
        sleep 100d
        exit 1
     fi
-}
+fi