From 32f1491fbd0a5114f8334447b14361f4f97bf14e Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Fri, 21 May 2021 00:04:13 +0700 Subject: [PATCH] grub: Add save default item support for more items --- features.in/grub/cfg.in/25install-vnc-connect.cfg | 1 + features.in/grub/cfg.in/25install-vnc-listen.cfg | 1 + features.in/grub/cfg.in/83rescue_fm.cfg | 1 + features.in/grub/cfg.in/84rescue_remote.cfg | 1 + 4 files changed, 4 insertions(+) diff --git a/features.in/grub/cfg.in/25install-vnc-connect.cfg b/features.in/grub/cfg.in/25install-vnc-connect.cfg index 7990d194..74d0a106 100644 --- a/features.in/grub/cfg.in/25install-vnc-connect.cfg +++ b/features.in/grub/cfg.in/25install-vnc-connect.cfg @@ -1,5 +1,6 @@ menuentry $"VNC install "'@distro@'$" (edit to set server IP address)" --id 'vncconnect' { + savedefault linux$linux_suffix /boot/vmlinuz$KFLAVOUR fastboot @initrd_bootargs@ @stagename@=altinst ramdisk_size=@altinst_size@ showopts @bootargs@ $EFI_BOOTARGS headless no_alt_virt_keyboard vncconnect=IP lang=$lang initrd$linux_suffix /boot/@initrd@$KFLAVOUR.@initrd_ext@ } diff --git a/features.in/grub/cfg.in/25install-vnc-listen.cfg b/features.in/grub/cfg.in/25install-vnc-listen.cfg index c804c712..2301b7e9 100644 --- a/features.in/grub/cfg.in/25install-vnc-listen.cfg +++ b/features.in/grub/cfg.in/25install-vnc-listen.cfg @@ -1,5 +1,6 @@ menuentry $"VNC install "'@distro@'$" (edit to set password and connect here)" --id 'vncpasswd' { + savedefault linux$linux_suffix /boot/vmlinuz$KFLAVOUR fastboot @initrd_bootargs@ @stagename@=altinst ramdisk_size=@altinst_size@ showopts @bootargs@ $EFI_BOOTARGS headless no_alt_virt_keyboard vncpassword=VNCPWD lang=$lang initrd$linux_suffix /boot/@initrd@$KFLAVOUR.@initrd_ext@ } diff --git a/features.in/grub/cfg.in/83rescue_fm.cfg b/features.in/grub/cfg.in/83rescue_fm.cfg index 8cc43d2d..6600e126 100644 --- a/features.in/grub/cfg.in/83rescue_fm.cfg +++ b/features.in/grub/cfg.in/83rescue_fm.cfg @@ -1,4 +1,5 @@ menuentry $"Forensic mode (leave disks alone)" --id 'rescue_forensic' { + savedefault echo $"Loading Linux vmlinuz$KFLAVOUR ..." linux$linux_suffix /boot/vmlinuz fastboot live @initrd_bootargs@ @stagename@=rescue ramdisk_size=@rescue_size@ splash=0 showopts @rescue_bootargs@ $EFI_BOOTARGS max_loop=16 forensic hash=@rescue_hash@ echo $"Loading initial ramdisk ..." diff --git a/features.in/grub/cfg.in/84rescue_remote.cfg b/features.in/grub/cfg.in/84rescue_remote.cfg index 8b69125c..1be7239d 100644 --- a/features.in/grub/cfg.in/84rescue_remote.cfg +++ b/features.in/grub/cfg.in/84rescue_remote.cfg @@ -1,4 +1,5 @@ menuentry $"Rescue with remote SSH access (DHCP)" --id 'rescue_remote' { + savedefault linux$linux_suffix /boot/vmlinuz$KFLAVOUR fastboot live @initrd_bootargs@ @stagename@=rescue ramdisk_size=@rescue_size@ splash=0 showopts @rescue_bootargs@ $EFI_BOOTARGS max_loop=16 ip=dhcp port=22 rootpw=AUTO hash=@rescue_hash@ echo $"Loading initial ramdisk ..." initrd$linux_suffix /boot/@initrd@$KFLAVOUR.@initrd_ext@