base: fix selinux handling if .autorelabel is present

rhbz#557744
master
Harald Hoyer 2010-01-27 16:09:15 +01:00
parent d8231fa5c2
commit 97c97ff6d5
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ rd_load_policy()
} 2>&1 | vinfo

if [ $ret -eq 0 -o $ret -eq 2 ]; then
# If machine requires a relabel, force to permissive mode
[ -e "$NEWROOT"/.autorelabel ] && ( echo 0 > "$NEWROOT"/selinux/enforce )
return 0
fi