From 69a1fca4374797dea56035ce56a17441a2ca9280 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Wed, 2 Mar 2016 17:50:05 -0800 Subject: runqemu: simplify checking for iso and ramfs Signed-off-by: Robert Yang --- scripts/runqemu-internal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/runqemu-internal') diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index 89a1e1ba27..6fa93c9d07 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal @@ -593,12 +593,12 @@ if [ "$MACHINE" = "qemuzynq" ]; then fi fi -if [ "x$RAMFS" = "xtrue" ]; then +if [ "$FSTYPE" = "cpio.gz" ]; then QEMUOPTIONS="-initrd $ROOTFS -nographic" KERNCMDLINE="root=/dev/ram0 console=ttyS0 debugshell" fi -if [ "x$ISOFS" = "xtrue" ]; then +if [ "$FSTYPE" = "iso" ]; then QEMUOPTIONS="$QEMU_NETWORK_CMD -cdrom $ROOTFS $QEMU_UI_OPTIONS" fi -- cgit 1.2.3-korg