selinux: umount $NEWROOT/dev and its submounts
PATCH 1/1 selinux: umount $NEWROOT/dev and its submounts
$NEWROOT/dev and its submounts should be umounted after we use it. Otherwise it fails other scripts that umount /sysroot only.
Signed-off-by WANG Chao <[email protected]>
--- modules.d/98selinux/selinux-loadpolicy.sh | 1 + 1 file changed, 1 insertion(+)
modules.d/98selinux/selinux-loadpolicy.sh +1 -0
@@ -48,6 +48,7 @@ rd_load_policy() [ -e "$NEWROOT"/.autorelabel ] && LANG=C /usr/sbin/setenforce 0 mount --rbind /dev "$NEWROOT/dev" LANG=C chroot "$NEWROOT" /sbin/restorecon -R /dev + umount -R "$NEWROOT/dev" return 0 fi
Signature · 1 line
1.8.2.1
A message that is not in the archive (sent off-list or not yet received): 20130618055804.GA3612-UAAZkH0G2Ts1naxU1pY8ZxcY2uh10dtjAL8bYrjMMd8@public.gmane.org
Quoted 14 lines · WANG Chao
$NEWROOT/dev and its submounts should be umounted after we use it. Otherwise it fails other scripts that umount /sysroot only.
Signed-off-by WANG Chao <[email protected]>--- modules.d/98selinux/selinux-loadpolicy.sh | 1 + 1 file changed, 1 insertion(+)modules.d/98selinux/selinux-loadpolicy.sh +0
-0
modules.d/98selinux/selinux-loadpolicy.sh rd_load_policy() · line 54
Quoted 7 lines
modules.d/98selinux/selinux-loadpolicy.sh +1
-0@@ -48,6 +48,7 @@ rd_load_policy() [ -e "$NEWROOT"/.autorelabel ] && LANG=C /usr/sbin/setenforce 0 mount --rbind /dev "$NEWROOT/dev" LANG=C chroot "$NEWROOT" /sbin/restorecon -R /dev + umount -R "$NEWROOT/dev" return 0 fi
Thanks! Pushed.