1
0
mirror of https://github.com/rancher/os.git synced 2025-09-16 06:59:12 +00:00

Add Syslinux menu with debug and autologin options

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-06-28 13:15:58 +10:00
parent 85436f675b
commit 204facc395
6 changed files with 56 additions and 16 deletions

View File

@@ -123,6 +123,9 @@ while [ "$#" -gt 0 ]; do
--netconsole)
NETCONSOLE=1
;;
--gui)
GUICONSOLE=1
;;
--installed)
./scripts/create-installed
INSTALLED=1
@@ -265,16 +268,17 @@ if [ "$QIND" != "1" ]; then
HOME=${HOME:-/}
fi
# default serial console
DISPLAY_OPTS="-nographic -serial mon:stdio -display none"
if [ "$CONSOLEDISPLAY" == "1" ]; then
DISPLAY_OPTS="-curses"
fi
if [ "$NETCONSOLE" == "1" ]; then
# put ttyS1 on port 4444
DISPLAY_OPTS="${DISPLAY_OPTS} -serial tcp::4444,server"
KERNEL_ARGS="rancher.console=ttyS1 rancher.autologin=ttyS1 ${KERNEL_ARGS}"
if [ "$GUICONSOLE" == "" ]; then
# default serial console
DISPLAY_OPTS="-nographic -serial mon:stdio -display none"
if [ "$CONSOLEDISPLAY" == "1" ]; then
DISPLAY_OPTS="-curses"
fi
if [ "$NETCONSOLE" == "1" ]; then
# put ttyS1 on port 4444
DISPLAY_OPTS="${DISPLAY_OPTS} -serial tcp::4444,server"
KERNEL_ARGS="rancher.console=ttyS1 rancher.autologin=ttyS1 ${KERNEL_ARGS}"
fi
fi
if [ "$QEMU" == "1" ]; then