- update mount-rootfs-and-do-chroot.sh, avoid bind mount errors

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=106
This commit is contained in:
Olaf Hering 2012-09-24 09:02:45 +00:00 committed by Git OBS Bridge
parent 374a11e6d2
commit 8e758de87e
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 24 11:01:57 CEST 2012 - ohering@suse.de
- update mount-rootfs-and-do-chroot.sh, avoid bind mount errors
-------------------------------------------------------------------
Sat Sep 22 15:33:31 CEST 2012 - ohering@suse.de

View File

@ -92,6 +92,7 @@
#%programs: setctsid
# mount-rootfs-and-do-chroot.sh
#%programs: mkdir
#%programs: stat
#%programs: mount
#%programs: chroot
#%programs: umount

View File

@ -58,7 +58,7 @@ then
for i in dev proc sys selinux
do
if test -d /${i} && test -d "${mnt}/${i}"
if test -d /${i} && test -d "${mnt}/${i}" && test "`stat -c %D /`" != "`stat -c %D ${i}`"
then
mount -v --bind /${i} "${mnt}/${i}"
fi