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

Prevent ctrl-c in qemu from exiting vm - use ctrl-] instead

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-05-17 12:24:54 +10:00
parent 69f876b73e
commit b22bf7476c

View File

@@ -264,6 +264,11 @@ if [ "$QEMU" == "1" ]; then
else
INSTALLED_ARGS="-kernel ${KERNEL} -initrd ${INITRD}"
fi
# don't quit qemu using ctrl-c
stty intr ^]
stty susp ^]
stty quit ^]
set -x
exec qemu-system-${QEMUARCH} \
${DISPLAY_OPTS} \
@@ -293,6 +298,10 @@ elif [ "$BOOT_ISO" == "1" ] ||
echo "----- $ISO_OPTS"
fi
set -x
# don't quit qemu using ctrl-c
stty intr ^]
stty susp ^]
stty quit ^]
exec qemu-system-${QEMUARCH} \
${DISPLAY_OPTS} \
${CLOUD_CONFIG_DISK} \