18 lines
801 B
Bash
Executable File
18 lines
801 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Use this script without arguments to run the generated ISO image with QEMU.
|
|
# If you pass '-hdd' or '-h' the virtual hard disk 'hdd.img' will be attached.
|
|
# Note that this virtual hard disk has to be created in advance. You can use
|
|
# the script 'generate_hdd.sh' to generate the hard disk image file. Once you
|
|
# have hard disk image, you can use it as overlay device and persist all your
|
|
# changes. See the '.config' file for more information on the overlay support.
|
|
|
|
if [ "$1" = "-hdd" -o "$1" = "-h" ] ; then
|
|
echo "Starting QEMU with attached ISO image and hard disk."
|
|
qemu-system-i386 -m 64M -cdrom minimal_linux_live.iso -hda hdd.img -boot d
|
|
else
|
|
echo "Starting QEMU with attached ISO image and no hard disk."
|
|
qemu-system-i386 -m 64M -cdrom minimal_linux_live.iso -boot d
|
|
fi
|
|
|