- 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:
parent
374a11e6d2
commit
8e758de87e
@ -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
|
||||
|
||||
|
@ -92,6 +92,7 @@
|
||||
#%programs: setctsid
|
||||
# mount-rootfs-and-do-chroot.sh
|
||||
#%programs: mkdir
|
||||
#%programs: stat
|
||||
#%programs: mount
|
||||
#%programs: chroot
|
||||
#%programs: umount
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user