#!/bin/bash #%stage: block # # many guestfish commands need a mount point # in guestfsd the mount point defaults to /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* 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