[SOLVED] Forcing the boot menu to wait for manual selection
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Forcing the boot menu to wait for manual selection
In Debian 10 modifying the "GRUB_TIMEOUT" parameter to -1 and then running "update-grub" leads to an error and the boot menu has the same behavior. See below.
Code:
1) Uncommented part of /etc/default/grub
GRUB_DEFAULT=0
GRUB_TIMEOUT=-1
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
2) Content of script /usr/sbin/update-grub
#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"
3) As root in /usr/sbin
ls -l *grub*
-rwxr-xr-x 1 root root 1041064 Mar 1 23:50 grub-install
-rwxr-xr-x 1 root root 804664 Mar 1 23:50 grub-macbless
-rwxr-xr-x 1 root root 8023 Mar 1 23:50 grub-mkconfig
-rwxr-xr-x 1 root root 217528 Mar 1 23:50 grub-mkdevicemap
-rwxr-xr-x 1 root root 821368 Mar 1 23:50 grub-probe
-rwxr-xr-x 1 root root 4112 Mar 1 23:50 grub-reboot
-rwxr-xr-x 1 root root 3562 Mar 1 23:50 grub-set-default
-rwxr-xr-x 1 root root 64 Feb 27 16:07 update-grub
lrwxrwxrwx 1 root root 11 Mar 1 23:50 update-grub2 -> update-grub
./update-grub
./update-grub: 3: exec: grub-mkconfig: not found
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.