Signed-off-by: Martin Schwenke <martin@meltin.net>
diskimage_put_guestfish ()
{
- guestfish --remote upload "$1" "$2"
+ if [ "$1" = "-" ] ; then
+ local t=$(mktemp)
+ cat > "$t"
+ guestfish --remote upload "$t" "$2"
+ rm "$t"
+ else
+ guestfish --remote upload "$1" "$2"
+ fi
}
diskimage_ln_s_guestfish ()
diskimage_put_guestmount ()
{
- cp "$1" "mnt$2"
+ if [ "$1" = "-" ] ; then
+ cat >"mnt$2"
+ else
+ cp "$1" "mnt$2"
+ fi
}
diskimage_ln_s_guestmount ()
diskimage_put_loopback ()
{
- cp "$1" "mnt$2"
+ if [ "$1" = "-" ] ; then
+ cat >"mnt$2"
+ else
+ cp "$1" "mnt$2"
+ fi
}
diskimage_ln_s_loopback ()