forked from pool/libguestfs
Olaf Hering
03c60de8f5
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=61
18 lines
284 B
Bash
18 lines
284 B
Bash
#!/bin/bash
|
|
#%stage: block
|
|
#
|
|
|
|
# many guestfish commands need a mount point
|
|
# in guestfsd the mount point defaults to /sysroot
|
|
mkdir -vp $tmp_mnt/sysroot
|
|
|
|
for f in /etc/magic /usr/share/misc/magic*
|
|
do
|
|
if test -e $f
|
|
then
|
|
mkdir -vp $tmp_mnt/${f%/*}
|
|
cp -av $f $tmp_mnt/$f
|
|
fi
|
|
done
|
|
|