mirror of
https://github.com/rancher/os.git
synced 2025-09-04 00:04:25 +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:
@@ -264,6 +264,11 @@ if [ "$QEMU" == "1" ]; then
|
|||||||
else
|
else
|
||||||
INSTALLED_ARGS="-kernel ${KERNEL} -initrd ${INITRD}"
|
INSTALLED_ARGS="-kernel ${KERNEL} -initrd ${INITRD}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# don't quit qemu using ctrl-c
|
||||||
|
stty intr ^]
|
||||||
|
stty susp ^]
|
||||||
|
stty quit ^]
|
||||||
set -x
|
set -x
|
||||||
exec qemu-system-${QEMUARCH} \
|
exec qemu-system-${QEMUARCH} \
|
||||||
${DISPLAY_OPTS} \
|
${DISPLAY_OPTS} \
|
||||||
@@ -293,6 +298,10 @@ elif [ "$BOOT_ISO" == "1" ] ||
|
|||||||
echo "----- $ISO_OPTS"
|
echo "----- $ISO_OPTS"
|
||||||
fi
|
fi
|
||||||
set -x
|
set -x
|
||||||
|
# don't quit qemu using ctrl-c
|
||||||
|
stty intr ^]
|
||||||
|
stty susp ^]
|
||||||
|
stty quit ^]
|
||||||
exec qemu-system-${QEMUARCH} \
|
exec qemu-system-${QEMUARCH} \
|
||||||
${DISPLAY_OPTS} \
|
${DISPLAY_OPTS} \
|
||||||
${CLOUD_CONFIG_DISK} \
|
${CLOUD_CONFIG_DISK} \
|
||||||
|
Reference in New Issue
Block a user