LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Forcing the boot menu to wait for manual selection (https://www.linuxquestions.org/questions/debian-26/forcing-the-boot-menu-to-wait-for-manual-selection-4175694534/)

PaulExordium 04-30-2021 11:10 AM

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


What am I missing?

colorpurple21859 04-30-2021 11:58 AM

set to this or longer
Code:

GRUB_TIMEOUT=10

colorpurple21859 04-30-2021 09:24 PM

Reread your post, misread your post first time around. Did you su into root? if so did your run
Code:

su
password:

or
Code:

su -
password:

Code:

su
password:

will result in the error your seeing.

PaulExordium 05-01-2021 09:38 AM

It was with
Code:

su root
password:

that I did all wthat I've described in my first post.

shruggy 05-01-2021 10:13 AM

^This is what caused your problem. As colorpurple21859 said, you had to call su with a dash: su -

PaulExordium 05-01-2021 02:24 PM

colorpurple21859,
shruggy,
thank you both.


All times are GMT -5. The time now is 08:52 AM.