forked from pool/libguestfs
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=82
32 lines
445 B
Bash
32 lines
445 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
|
|
cp -av --parents $f $tmp_mnt/
|
|
fi
|
|
done
|
|
|
|
for t in \
|
|
screen \
|
|
vt100 \
|
|
vt102 \
|
|
linux
|
|
do
|
|
ti="`echo /usr/share/terminfo/*/${t}`"
|
|
for f in $ti
|
|
do
|
|
if test -f "${f}"
|
|
then
|
|
cp -av --parents $f $tmp_mnt
|
|
fi
|
|
done
|
|
done
|