SHA256
1
0
forked from pool/libguestfs
libguestfs/libguestfs.mkinitrd.setup.sh

32 lines
445 B
Bash
Raw Normal View History

#!/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