From: WANG Chao Subject: [PATCH] selinux: umount $NEWROOT/dev and its submounts Date: Tue, 18 Jun 2013 13:58:04 +0800 Message-ID: <20130618055804.GA3612@dhcp12-158.nay.redhat.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Harald Hoyer , Baoquan He , Dave Young Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org $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 -- 1.8.2.1