create /selinux in initrd, guestfsd tries to bind mount it into the guest

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=83
This commit is contained in:
Olaf Hering 2012-09-12 09:04:13 +00:00 committed by Git OBS Bridge
parent 3cfa25b5f5
commit 27969a5f19

View File

@ -6,6 +6,9 @@
# in guestfsd the mount point defaults to /sysroot # in guestfsd the mount point defaults to /sysroot
mkdir -vp $tmp_mnt/sysroot mkdir -vp $tmp_mnt/sysroot
# guestfsd tries to bind mount this directory
mkdir -vp $tmp_mnt/selinux
for f in /etc/magic /usr/share/misc/magic* for f in /etc/magic /usr/share/misc/magic*
do do
if test -e $f if test -e $f