LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-30-2021, 11:10 AM   #1
PaulExordium
Member
 
Registered: Dec 2020
Distribution: Debian, Tails, Kodachi, Mint DE
Posts: 92

Rep: Reputation: Disabled
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?
 
Old 04-30-2021, 11:58 AM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
set to this or longer
Code:
GRUB_TIMEOUT=10
 
Old 04-30-2021, 09:24 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
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.

Last edited by colorpurple21859; 04-30-2021 at 09:27 PM.
 
Old 05-01-2021, 09:38 AM   #4
PaulExordium
Member
 
Registered: Dec 2020
Distribution: Debian, Tails, Kodachi, Mint DE
Posts: 92

Original Poster
Rep: Reputation: Disabled
It was with
Code:
su root
password:
that I did all wthat I've described in my first post.
 
Old 05-01-2021, 10:13 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
^This is what caused your problem. As colorpurple21859 said, you had to call su with a dash: su -
 
Old 05-01-2021, 02:24 PM   #6
PaulExordium
Member
 
Registered: Dec 2020
Distribution: Debian, Tails, Kodachi, Mint DE
Posts: 92

Original Poster
Rep: Reputation: Disabled
colorpurple21859,
shruggy,
thank you both.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add danish/dansk to keyboard selection and language selection scootergrisen Slackware 2 02-14-2017 04:06 PM
changing OS selection at boot selection screen gcmhmedic17 Linux - Desktop 4 12-21-2010 11:38 AM
Selection Buffer sending text before completing selection fakie_flip Linux - Software 2 06-20-2010 07:54 AM
forcing traffic through certain route(forcing source ip) taltman Linux - Networking 1 12-26-2007 01:07 PM
I download then wait and download and wait... jsheffie SUSE / openSUSE 1 11-04-2005 04:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration