mirror of
https://github.com/rxrbln/t2sde.git
synced 2025-05-08 20:21:59 +08:00
18 lines
349 B
Batchfile
18 lines
349 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
|
|
qemu-img create $hda -f qcow2 10G
|
|
expect -f ${0%.cmd}.exp $QEMUSYS $qemuargs -m $normmem ${extstorage}$ISO $isoboot ${intstorage}$hda
|
|
ret=$?
|
|
rm -f $hda
|
|
exit $?
|