Revision 5cbb15b9 snf-image-host/create

b/snf-image-host/create
95 95
result_file=$(mktemp --tmpdir result.XXXXXXXX)
96 96
CLEANUP+=("rm -f $result_file")
97 97

  
98
image_file=$(mktemp --tmpdir helperXXXXXXXX.img)
99
CLEANUP+=("rm -f $image_file")
100

  
101
$QEMU_IMG create -f qcow2 -b ${HELPER_IMG} $image_file
102

  
98 103
$TIMELIMIT -t $HELPER_SOFT_TIMEOUT -T $HELPER_HARD_TIMEOUT \
99
    kvm -runas $HELPER_USER -drive file=${HELPER_IMG},snapshot=on \
104
    kvm -runas $HELPER_USER -drive file=${image_file} \
100 105
    -drive file=$root_dev,format=raw,if=virtio,cache=none \
101 106
    -boot c -serial stdio -serial file:$result_file -fda $floppy \
102 107
    -vga none -nographic -parallel none -monitor null -nographic \

Also available in: Unified diff