98selinux/selinux-loadpolicy.sh: use mount --rbind for /dev
This preserves /dev/shm and /dev/pts for the selinux relabel.master
parent
abbb76fe93
commit
5055abb615
|
|
@ -43,7 +43,7 @@ rd_load_policy()
|
|||
if [ $ret -eq 0 -o $ret -eq 2 ]; then
|
||||
# If machine requires a relabel, force to permissive mode
|
||||
[ -e "$NEWROOT"/.autorelabel ] && LANG=C /usr/sbin/setenforce 0
|
||||
mount --bind /dev "$NEWROOT/dev"
|
||||
mount --rbind /dev "$NEWROOT/dev"
|
||||
LANG=C chroot "$NEWROOT" /sbin/restorecon -R /dev
|
||||
return 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue