selinux-loadpolicy: set initial ret=0
authorHarald Hoyer <harald@redhat.com>
Wed, 9 Sep 2009 17:50:44 +0000 (19:50 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 9 Sep 2009 17:50:44 +0000 (19:50 +0200)
modules.d/99base/selinux-loadpolicy.sh

index eaaf337..fbdad22 100755 (executable)
@@ -2,6 +2,7 @@
 # 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
+    ret=0
     info "Loading SELinux policy"
     {
         # load_policy does mount /proc and /selinux in libselinux,selinux_init_load_policy()