diff options
author | John Estabrook <jestabro@vyos.io> | 2023-11-16 13:45:43 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 13:45:43 -0600 |
commit | d4f9d6ce726ea4d4fff6eecc16678d7a45a0b555 (patch) | |
tree | bad8b2fbfd9e325d9e6338bb8abd6608a2537c04 /data/templates/grub/grub_options.j2 | |
parent | c8ba5dccfa9b02533c6536903ecacd3ddb04351e (diff) | |
parent | e036f783bc85e4d2bad5f5cbfd688a03a352223e (diff) | |
download | vyos-1x-d4f9d6ce726ea4d4fff6eecc16678d7a45a0b555.tar.gz vyos-1x-d4f9d6ce726ea4d4fff6eecc16678d7a45a0b555.zip |
Merge pull request #1768 from zdc/T4516-sagitta
image: T4516: Added system image tools
Diffstat (limited to 'data/templates/grub/grub_options.j2')
-rw-r--r-- | data/templates/grub/grub_options.j2 | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/data/templates/grub/grub_options.j2 b/data/templates/grub/grub_options.j2 new file mode 100644 index 000000000..c8a1472e1 --- /dev/null +++ b/data/templates/grub/grub_options.j2 @@ -0,0 +1,52 @@ +submenu "Boot options" { + submenu "Select boot mode" { + menuentry "Normal" { + set bootmode="normal" + export bootmode + configfile ${prefix}/grub.cfg.d/*vyos-menu*.cfg + } + menuentry "Password reset" { + set bootmode="pw_reset" + export bootmode + configfile ${prefix}/grub.cfg.d/*vyos-menu*.cfg + } + menuentry "System recovery" { + set bootmode="recovery" + export bootmode + configfile ${prefix}/grub.cfg.d/*vyos-menu*.cfg + } + menuentry "Load the whole root filesystem to RAM" { + set boot_toram="yes" + export boot_toram + configfile ${prefix}/grub.cfg.d/*vyos-menu*.cfg + } + } + submenu "Select console type" { + menuentry "tty (graphical)" { + set console_type="tty" + export console_type + configfile ${prefix}/grub.cfg.d/*vyos-menu*.cfg + } + menuentry "ttyS (serial)" { + set console_type="ttyS" + export console_type + setup_serial + configfile ${prefix}/grub.cfg.d/*vyos-menu*.cfg + } + menuentry "ttyUSB (USB serial)" { + set console_type="ttyUSB" + export console_type + setup_serial + configfile ${prefix}/grub.cfg.d/*vyos-menu*.cfg + } + } + menuentry "Enter console number" { + read console_num + export console_num + setup_serial + configfile ${prefix}/grub.cfg.d/*vyos-menu*.cfg + } + menuentry "Current: boot mode: ${bootmode}, console: ${console_type}${console_num}" { + echo + } +} |