From 32d115f3852db5a8dee2cdb4bb4633e838e9cb96 Mon Sep 17 00:00:00 2001 From: WANG Chao Date: Tue, 18 Jun 2013 13:58:04 +0800 Subject: [PATCH] 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 --- modules.d/98selinux/selinux-loadpolicy.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules.d/98selinux/selinux-loadpolicy.sh b/modules.d/98selinux/selinux-loadpolicy.sh index 5dddfc2..436ee6b 100755 --- a/modules.d/98selinux/selinux-loadpolicy.sh +++ b/modules.d/98selinux/selinux-loadpolicy.sh @@ -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 -- 2.7.4