mirror of
https://github.com/rxrbln/t2sde.git
synced 2025-05-08 20:21:59 +08:00
22 lines
471 B
Batchfile
22 lines
471 B
Batchfile
#!/bin/sh
|
|
|
|
source ${0%/*}/qemu.in
|
|
|
|
[ "$isoboot" ] || exit 43
|
|
|
|
# only thru kvm for performance reasons
|
|
[ "${qemuargs/--enable-kvm/}" = "$qemuargs" ] && exit 42
|
|
|
|
cd $SYSROOT
|
|
|
|
hda=/tmp/$$.hda hdb=/tmp/$$.hdb
|
|
hda=/srv/hda hdb=/srv/hdb
|
|
|
|
qemu-img create $hda -f qcow2 120G
|
|
qemu-img create $hdb -f qcow2 120G
|
|
expect -f ${0%.cmd}.exp $QEMUSYS $qemuargs -smp 8 -m $((highmem * 8)) ${extstorage}$ISO $isoboot \
|
|
${intstorage}$hda ${intstorage2}$hdb
|
|
ret=$?
|
|
#rm -f $hda $hdb
|
|
exit $?
|