]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
selinux-loadpolicy.sh: also check for /etc/selinux/config
authorHarald Hoyer <harald@redhat.com>
Thu, 10 Sep 2009 13:49:03 +0000 (15:49 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 10 Sep 2009 13:49:03 +0000 (15:49 +0200)
modules.d/99base/selinux-loadpolicy.sh

index fbdad220be2fca2184a811d90240238ab481f6e6..f1d8cab515b6fd72cdd66cb75b43d1bb1769be29 100755 (executable)
@@ -1,7 +1,8 @@
 #!/bin/sh
 # FIXME: load selinux policy.  this should really be done after we switchroot 
 
-if [ -x "$NEWROOT/usr/sbin/load_policy" -o -x "$NEWROOT/sbin/load_policy" ] && [ -e "$NEWROOT/etc/sysconfig/selinux" ]; then
+if [ -x "$NEWROOT/usr/sbin/load_policy" -o -x "$NEWROOT/sbin/load_policy" ] \
+   && [ -e "$NEWROOT/etc/sysconfig/selinux" -o -e "$NEWROOT/etc/selinux/config" ]; then
     ret=0
     info "Loading SELinux policy"
     {