diff options
author | Emanuele Torre <torreemanuele6@gmail.com> | 2020-06-24 11:01:31 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-01 12:53:39 +0200 |
commit | 6f8042d8e528f7df6a7a53f27889d9503648fc4d (patch) | |
tree | d20c57ba356a348eb32935b79b2f50f327c05534 | |
parent | 8f071137d1f0a26419afb2f2299920fafaeb223b (diff) | |
download | serenity-6f8042d8e528f7df6a7a53f27889d9503648fc4d.zip |
Meta: make `Meta/run.sh qgrub` work.
-rwxr-xr-x | Meta/run.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Meta/run.sh b/Meta/run.sh index d537adee74..8278b697b4 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -20,6 +20,14 @@ die() { [ -z "$SERENITY_RAM_SIZE" ] && SERENITY_RAM_SIZE=256M +[ -z "$SERENITY_DISK_IMAGE" ] && { + if [ "$1" = qgrub ]; then + SERENITY_DISK_IMAGE="grub_disk_image" + else + SERENITY_DISK_IMAGE="_disk_image" + fi +} + [ -z "$SERENITY_COMMON_QEMU_ARGS" ] && SERENITY_COMMON_QEMU_ARGS=" $SERENITY_EXTRA_QEMU_ARGS -s -m $SERENITY_RAM_SIZE @@ -27,7 +35,7 @@ $SERENITY_EXTRA_QEMU_ARGS -d cpu_reset,guest_errors -smp 2 -device VGA,vgamem_mb=64 --drive file=_disk_image,format=raw,index=0,media=disk +-drive file=${SERENITY_DISK_IMAGE},format=raw,index=0,media=disk -device ich9-ahci -debugcon stdio -soundhw pcspk @@ -43,7 +51,7 @@ $SERENITY_EXTRA_QEMU_ARGS -smp 2 -device VGA,vgamem_mb=64 -device piix3-ide --drive file=_disk_image,id=disk,if=none +-drive file=${SERENITY_DISK_IMAGE},id=disk,if=none -device ide-hd,bus=ide.6,drive=disk,unit=0 -debugcon stdio -soundhw pcspk |