You are not logged in.

#1 2018-11-14 23:36:54

voja
Member
Registered: 2018-11-14
Posts: 6

GRUB doesn't change at all based on configuration

I've been trying to get rid of the GRUB menu on startup using the instructions I found online, but nothing worked. I edited the /etc/default/grub file and ran grub-mkconfig everytime I made a change, but the GRUB menu didn't change once. Finally, I gave up and looked directly in the /boot/grub/grub.cfg file and the timeout is set to zero everywhere. And still, the GRUB menu stays the same.
If anyone doesn't know what I'm talking about, it's the menu that opens up on startup, hangs on for a couple of seconds and them boots up to the default OS. For me, there's only one OS, Arch, but, despite all my settings, pops-up for 5 seconds and then boots up.
I'm sorry if this question was posted before, but I've searched everywhere and couldn't find anyone with my problem. Any help would be greatly appreciated.

/etc/default/grub

# GRUB boot loader configuration

GRUB_DEFAULT="0"
GRUB_TIMEOUT="0"
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Uncomment to enable Hidden Menu, and optionally hide the timeout count
GRUB_HIDDEN_TIMEOUT="0"
GRUB_HIDDEN_TIMEOUT_QUIET="true"

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires to
# set 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"

grub.cfg

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos3' --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  cbbc3df3-633e-4f82-9a33-3627f7f90fac
else
  search --no-floppy --fs-uuid --set=root cbbc3df3-633e-4f82-9a33-3627f7f90fac
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=1
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=1
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/25_pre-os-prober ###
set timeout_bak=${timeout}
set timeout_style_bak=${timeout_style}
### END /etc/grub.d/25_pre-os-prober ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/35_post-os-prober ###
set timeout=${timeout_bak}
set timeout_style=${timeout_style_bak}
### END /etc/grub.d/35_post-os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Offline

#2 2018-11-15 00:05:33

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: GRUB doesn't change at all based on configuration

That's not your entire grub.cfg. Please post the complete file.

Offline

#3 2018-11-15 00:26:09

jbenge1
Member
From: Az
Registered: 2018-04-09
Posts: 151

Re: GRUB doesn't change at all based on configuration

Have you tried

GRUB_FORCE_HIDDEN_MENU="true"

"Dr. Madden, why don't the natural numbers include 0?" -me
"....... Take a philosophy course" -Dr. Madden

Offline

#4 2018-11-15 08:11:10

voja
Member
Registered: 2018-11-14
Posts: 6

Re: GRUB doesn't change at all based on configuration

jbenge1 wrote:

Have you tried

GRUB_FORCE_HIDDEN_MENU="true"

Added it, same thing. sad

Offline

#5 2018-11-15 08:24:21

voja
Member
Registered: 2018-11-14
Posts: 6

Re: GRUB doesn't change at all based on configuration

2ManyDogs wrote:

That's not your entire grub.cfg. Please post the complete file.

I'm pretty sure it is, but I'll post the raw file this time, just to be sure. grub.cfg

Offline

#6 2018-11-15 15:45:20

archimboldo
Member
Registered: 2016-03-07
Posts: 232

Re: GRUB doesn't change at all based on configuration

voja wrote:

I'm pretty sure it is, but I'll post the raw file this time, just to be sure. grub.cfg

Kernel entries? How did you install Arch anyway?

Last edited by archimboldo (2018-11-15 15:46:44)


Rules for problems.
Everyone has problems. Animals have problems. And buildings. And cats, and trees.
Problems are your friends. Treat them well.

Offline

#7 2018-11-15 16:46:12

voja
Member
Registered: 2018-11-14
Posts: 6

Re: GRUB doesn't change at all based on configuration

archimboldo wrote:
voja wrote:

I'm pretty sure it is, but I'll post the raw file this time, just to be sure. grub.cfg

Kernel entries? How did you install Arch anyway?

I followed the offical installation guide. Why?

Offline

#8 2018-11-15 16:50:21

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: GRUB doesn't change at all based on configuration

There should be at least one entry in the 10_linux section of your grub.cfg, and there are none. Please post the exact grub-mkconfig command you are running, and the output of the following command:

ls /boot

Last edited by 2ManyDogs (2018-11-15 16:50:59)

Offline

#9 2018-11-15 16:55:30

headkase
Member
Registered: 2011-12-06
Posts: 2,004

Re: GRUB doesn't change at all based on configuration

Also, you said you just ran "grub-mkconfig" but this is the full command you should be running to generate a proper configuration:

sudo grub-mkconfig -o /boot/grub/grub.cfg

Without telling the make config where to put the output it goes nowhere.

Offline

#10 2018-11-15 23:03:36

voja
Member
Registered: 2018-11-14
Posts: 6

Re: GRUB doesn't change at all based on configuration

2ManyDogs wrote:

There should be at least one entry in the 10_linux section of your grub.cfg, and there are none. Please post the exact grub-mkconfig command you are running, and the output of the following command:

ls /boot

I use the

sudo grub-mkconfig -o /boot/grub/grub.cfg

command every time. As for the contents od /boot

$ ls /boot
grub
lost+found

Offline

#11 2018-11-15 23:04:31

voja
Member
Registered: 2018-11-14
Posts: 6

Re: GRUB doesn't change at all based on configuration

headkase wrote:

Also, you said you just ran "grub-mkconfig" but this is the full command you should be running to generate a proper configuration:

sudo grub-mkconfig -o /boot/grub/grub.cfg

Without telling the make config where to put the output it goes nowhere.

Sorry, when I said "grub-mkconfig", I was refering to the full command that you provided.

Offline

Board footer

Powered by FluxBB