1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 06:40:31 +00:00

add some better menu touches, make upgrade also upgrade to the menu, and add a ros config syslinux cmd for editing the global.cfg

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-06-28 23:58:14 +10:00
parent 204facc395
commit b733bde9cd
7 changed files with 95 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
UI vesamenu.c32
# Add `UI vesamenu.c32` to a new line in `global.cfg` to switch to GUI bootmenu (use `sudo ros config syslinux`)
UI menu.c32
TIMEOUT 20 #2s
PROMPT 0
@@ -6,7 +7,14 @@ PROMPT 0
INCLUDE ../global.cfg
# each INCLUDEd file has a `DEFAULT mylabel` in it, and the last one wins
LABEL rancheros-previous
MENU LABEL Previous RancherOS Version
MENU DISABLE
INCLUDE ../linux-previous.cfg
LABEL rancheros-current
MENU LABEL Current RancherOS Version
MENU DISABLE
INCLUDE ../linux-current.cfg
# http://www.syslinux.org/wiki/index.php?title=Comboot/menu.c32

View File

@@ -1,5 +1,4 @@
# TODO: should add ros-version to label and initrd
DEFAULT rancheros-${LABEL}
LABEL rancheros-${LABEL}
SAY rancheros-${LABEL}: RancherOS ${VERSION} ${KERNEL_VERSION}
@@ -22,4 +21,11 @@ LABEL rancheros-${LABEL}-debug
COM32 cmd.c32
APPEND rancheros-${LABEL} rancher.debug=true
LABEL rancheros-${LABEL}-debug-autologin
SAY rancheros-${LABEL}-debug-autolgin: debug and autologin RancherOS ${VERSION} ${KERNEL_VERSION}
MENU LABEL rancher.debug and rancher.autologin
MENU INDENT 2
COM32 cmd.c32
APPEND rancheros-${LABEL} rancher.autologin=tty1 rancher.autologin=ttyS0 rancher.debug=true
MENU SEPARATOR

View File

@@ -26,4 +26,4 @@ docker run --rm -it \
-v /usr/share/ca-certificates:/usr/share/ca-certificates \
-w /var/lib/rancher \
--entrypoint sh \
rancher/os-base:v0.8.1
rancher/os-base:v1.0.3