1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

Fix script/run on Linux

This commit is contained in:
Darren Shepherd
2015-07-27 15:55:45 -07:00
parent dbb53215ce
commit cd616a383e

View File

@@ -114,7 +114,7 @@ if [ "$UNAME" == "Darwin" ] && [ -x $(which xhyve) ]; then
-U a01fb25c-3a19-4759-a47a-2e353e51807d \
-f kexec,${KERNEL},${INITRD_TEST},"earlyprintk=serial acpi=off elevator=noop ${KERNEL_ARGS}"
elif ["$UNAME" == "Linux"] && [ -x $(which qemu-system-x86_64) ]; then
elif [ "$UNAME" == "Linux" ] && [ -x $(which qemu-system-x86_64) ]; then
exec qemu-system-x86_64 -serial stdio \
-kernel ${KERNEL} \
-initrd ${INITRD_TEST} \
@@ -129,7 +129,8 @@ elif ["$UNAME" == "Linux"] && [ -x $(which qemu-system-x86_64) ]; then
-device virtio-9p-pci,fsdev=conf,mount_tag=config-2 \
-append "${KERNEL_ARGS}" \
-serial mon:telnet:localhost:4444,server,nowait \
-nographic \
${QEMU_ARGS} "${@}"
else
exit 42
fi
fi