[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here
From: |
Ulf Zibis |
Subject: |
GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here |
Date: |
Sat, 16 Oct 2021 17:23:31 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
Hi,
I have:
/dev/sda9/etc/default/grub (( Ubuntu 18.04.4 ))
<=========================================================
[.....]
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=menu
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
[.....]
=========================================================>
Wether the "GRUB_DEFAULT=saved" nor "GRUB_TIMEOUT=5" comes in function.
After successfully executing the 1st grub.cfg, GRUB always starts the first
menu of the 2nd grub.cfg and the timeout falls back to 30 seconds.
I have 2 chained config files:
/dev/sda1/boot/grub/grub.cfg (( Version 1 ))
<=========================================================
if loadfont /boot/grub/fonts/unicode.pf2 ; then
loadfont /boot/grub/fonts/unicode.pf2
set gfxmode="1920x1080"
load_video
insmod gfxterm
insmod efi_gop
insmod efi_uga
terminal_output gfxterm
if terminal_output gfxterm; then true ; else
terminal gfxterm
fi
fi
grub_gfxmode=1920x1080
grub_gfxpayload_linux=keep
gfxpayload=1920x1080x24,1920x1080
#insmod png
#background_image /boot-efi/grub/pict3.png
#set color_normal=light-gray/black
#set menu_color_normal=yellow/black
#set menu_color_highlight=red/black
timeout_style=menu
timeout=5
set default=4
menuentry "EFI-PC" { # Dummy Menü
set-root=(hd0,gpt1) # ohne 'gültige' Zeile keine Anzeige
rmmod tpm # erforderlich für das Booten mittels loopback
}
menuentry "Stop" {
halt
}
menuentry "Windows 8.1 auf /dev/sda4" {
insmod part_gpt
## UUID von EFI-Partition /dev/sda1 :
search --fs-uuid --set=root BC5C-B7DD
chainloader /efi/microsoft/boot/bootmgfw.efi
}
menuentry "Menü von Ubuntu-64 20.04 auf /dev/sda7" {
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 82b4acde-4db6-48b0-9d00-a09fb995b330
configfile /boot/grub/grub.cfg
}
menuentry "Menü von Ubuntu-32 18.04 auf /dev/sda9" {
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
configfile /boot/grub/grub.cfg
}
menuentry "Menü von Ubuntu-64 16.04 auf /dev/sda11" {
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 944662da-df21-471e-b041-082090aaa22e
configfile /boot/grub/grub.cfg
}
=========================================================>
/dev/sda9/boot/grub/grub.cfg (( created by "sudo update-grub" ))
<=========================================================
#
# 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 ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
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="${saved_entry}"
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 recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env
recordfail; fi; 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_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9
--hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
else
search --no-floppy --fs-uuid --set=root ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
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=de_DE
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=1
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os
$menuentry_id_option 'gnulinux-simple-ec7ee724-6bed-4ee0-8056-8ecf44bb46b9' {
recordfail
savedefault
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9
--hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
else
search --no-floppy --fs-uuid --set=root
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
fi
linux /boot/vmlinuz-4.15.0-159-generic
root=UUID=ec7ee724-6bed-4ee0-8056-8ecf44bb46b9 ro quiet splash
resume=UUID=b89855fb-dc4f-42fb-9ee0-053b7cb5c683 $vt_handoff
initrd /boot/initrd.img-4.15.0-159-generic
}
submenu 'Erweiterte Optionen für Ubuntu' $menuentry_id_option
'gnulinux-advanced-ec7ee724-6bed-4ee0-8056-8ecf44bb46b9' {
menuentry 'Ubuntu, mit Linux 4.15.0-159-generic' --class ubuntu --class
gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-4.15.0-159-generic-advanced-ec7ee724-6bed-4ee0-8056-8ecf44bb46b9' {
recordfail
savedefault
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9
--hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
else
search --no-floppy --fs-uuid --set=root
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
fi
echo 'Linux 4.15.0-159-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-159-generic
root=UUID=ec7ee724-6bed-4ee0-8056-8ecf44bb46b9 ro quiet splash
resume=UUID=b89855fb-dc4f-42fb-9ee0-053b7cb5c683 $vt_handoff
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-159-generic
}
menuentry 'Ubuntu, mit Linux 4.15.0-159-generic (recovery mode)' --class
ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-4.15.0-159-generic-recovery-ec7ee724-6bed-4ee0-8056-8ecf44bb46b9' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9
--hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
else
search --no-floppy --fs-uuid --set=root
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
fi
echo 'Linux 4.15.0-159-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-159-generic
root=UUID=ec7ee724-6bed-4ee0-8056-8ecf44bb46b9 ro recovery nomodeset
dis_ucode_ldr
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-159-generic
}
menuentry 'Ubuntu, mit Linux 4.15.0-158-generic' --class ubuntu --class
gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-4.15.0-158-generic-advanced-ec7ee724-6bed-4ee0-8056-8ecf44bb46b9' {
recordfail
savedefault
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9
--hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
else
search --no-floppy --fs-uuid --set=root
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
fi
echo 'Linux 4.15.0-158-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-158-generic
root=UUID=ec7ee724-6bed-4ee0-8056-8ecf44bb46b9 ro quiet splash
resume=UUID=b89855fb-dc4f-42fb-9ee0-053b7cb5c683 $vt_handoff
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-158-generic
}
menuentry 'Ubuntu, mit Linux 4.15.0-158-generic (recovery mode)' --class
ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-4.15.0-158-generic-recovery-ec7ee724-6bed-4ee0-8056-8ecf44bb46b9' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9
--hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
else
search --no-floppy --fs-uuid --set=root
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
fi
echo 'Linux 4.15.0-158-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-158-generic
root=UUID=ec7ee724-6bed-4ee0-8056-8ecf44bb46b9 ro recovery nomodeset
dis_ucode_ldr
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-158-generic
}
menuentry 'Ubuntu, mit Linux 4.15.0-29-generic' --class ubuntu --class
gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-4.15.0-29-generic-advanced-ec7ee724-6bed-4ee0-8056-8ecf44bb46b9' {
recordfail
savedefault
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9
--hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
else
search --no-floppy --fs-uuid --set=root
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
fi
echo 'Linux 4.15.0-29-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-29-generic
root=UUID=ec7ee724-6bed-4ee0-8056-8ecf44bb46b9 ro quiet splash
resume=UUID=b89855fb-dc4f-42fb-9ee0-053b7cb5c683 $vt_handoff
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-29-generic
}
menuentry 'Ubuntu, mit Linux 4.15.0-29-generic (recovery mode)' --class
ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-4.15.0-29-generic-recovery-ec7ee724-6bed-4ee0-8056-8ecf44bb46b9' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9
--hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
else
search --no-floppy --fs-uuid --set=root
ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
fi
echo 'Linux 4.15.0-29-generic wird geladen …'
linux /boot/vmlinuz-4.15.0-29-generic
root=UUID=ec7ee724-6bed-4ee0-8056-8ecf44bb46b9 ro recovery nomodeset
dis_ucode_ldr
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-29-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (auf /dev/sda1)' --class windows --class os
$menuentry_id_option 'osprober-efi-BC5C-B7DD' {
savedefault
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1
--hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 BC5C-B7DD
else
search --no-floppy --fs-uuid --set=root BC5C-B7DD
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry 'Ubuntu 16.04.7 LTS (16.04) (auf /dev/sda11)' --class ubuntu --class
gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-simple-944662da-df21-471e-b041-082090aaa22e' {
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11
--hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11
944662da-df21-471e-b041-082090aaa22e
else
search --no-floppy --fs-uuid --set=root
944662da-df21-471e-b041-082090aaa22e
fi
linux /boot/vmlinuz-4.4.0-210-generic
root=UUID=944662da-df21-471e-b041-082090aaa22e ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.4.0-210-generic
}
submenu 'Erweiterte Optionen für Ubuntu 16.04.7 LTS (16.04) (auf /dev/sda11)'
$menuentry_id_option
'osprober-gnulinux-advanced-944662da-df21-471e-b041-082090aaa22e' {
menuentry 'Ubuntu (auf /dev/sda11)' --class gnu-linux --class gnu --class
os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-4.4.0-210-generic--944662da-df21-471e-b041-082090aaa22e'
{
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11
--hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11
944662da-df21-471e-b041-082090aaa22e
else
search --no-floppy --fs-uuid --set=root
944662da-df21-471e-b041-082090aaa22e
fi
linux /boot/vmlinuz-4.4.0-210-generic
root=UUID=944662da-df21-471e-b041-082090aaa22e ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.4.0-210-generic
}
menuentry 'Ubuntu, mit Linux 4.4.0-210-generic (auf /dev/sda11)' --class
gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-4.4.0-210-generic--944662da-df21-471e-b041-082090aaa22e'
{
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11
--hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11
944662da-df21-471e-b041-082090aaa22e
else
search --no-floppy --fs-uuid --set=root
944662da-df21-471e-b041-082090aaa22e
fi
linux /boot/vmlinuz-4.4.0-210-generic
root=UUID=944662da-df21-471e-b041-082090aaa22e ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.4.0-210-generic
}
menuentry 'Ubuntu, with Linux 4.4.0-210-generic (upstart) (auf /dev/sda11)'
--class gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-4.4.0-210-generic--944662da-df21-471e-b041-082090aaa22e'
{
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11
--hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11
944662da-df21-471e-b041-082090aaa22e
else
search --no-floppy --fs-uuid --set=root
944662da-df21-471e-b041-082090aaa22e
fi
linux /boot/vmlinuz-4.4.0-210-generic
root=UUID=944662da-df21-471e-b041-082090aaa22e ro quiet splash $vt_handoff
init=/sbin/upstart
initrd /boot/initrd.img-4.4.0-210-generic
}
menuentry 'Ubuntu, with Linux 4.4.0-210-generic (recovery mode) (auf
/dev/sda11)' --class gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-4.4.0-210-generic-root=UUID=944662da-df21-471e-b041-082090aaa22e
ro recovery nomodeset-944662da-df21-471e-b041-082090aaa22e' {
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11
--hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11
944662da-df21-471e-b041-082090aaa22e
else
search --no-floppy --fs-uuid --set=root
944662da-df21-471e-b041-082090aaa22e
fi
linux /boot/vmlinuz-4.4.0-210-generic
root=UUID=944662da-df21-471e-b041-082090aaa22e ro recovery nomodeset
initrd /boot/initrd.img-4.4.0-210-generic
}
menuentry 'Ubuntu, mit Linux 4.4.0-31-generic (auf /dev/sda11)' --class
gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-4.4.0-31-generic.efi.signed--944662da-df21-471e-b041-082090aaa22e'
{
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11
--hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11
944662da-df21-471e-b041-082090aaa22e
else
search --no-floppy --fs-uuid --set=root
944662da-df21-471e-b041-082090aaa22e
fi
linux /boot/vmlinuz-4.4.0-31-generic.efi.signed
root=UUID=944662da-df21-471e-b041-082090aaa22e ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.4.0-31-generic
}
menuentry 'Ubuntu, with Linux 4.4.0-31-generic (upstart) (auf /dev/sda11)'
--class gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-4.4.0-31-generic.efi.signed--944662da-df21-471e-b041-082090aaa22e'
{
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11
--hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11
944662da-df21-471e-b041-082090aaa22e
else
search --no-floppy --fs-uuid --set=root
944662da-df21-471e-b041-082090aaa22e
fi
linux /boot/vmlinuz-4.4.0-31-generic.efi.signed
root=UUID=944662da-df21-471e-b041-082090aaa22e ro quiet splash $vt_handoff
init=/sbin/upstart
initrd /boot/initrd.img-4.4.0-31-generic
}
menuentry 'Ubuntu, with Linux 4.4.0-31-generic (recovery mode) (auf
/dev/sda11)' --class gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-4.4.0-31-generic.efi.signed-root=UUID=944662da-df21-471e-b041-082090aaa22e
ro recovery nomodeset-944662da-df21-471e-b041-082090aaa22e' {
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11
--hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11
944662da-df21-471e-b041-082090aaa22e
else
search --no-floppy --fs-uuid --set=root
944662da-df21-471e-b041-082090aaa22e
fi
linux /boot/vmlinuz-4.4.0-31-generic.efi.signed
root=UUID=944662da-df21-471e-b041-082090aaa22e ro recovery nomodeset
initrd /boot/initrd.img-4.4.0-31-generic
}
}
menuentry 'Ubuntu 20.04.3 LTS (20.04) (auf /dev/sda7)' --class ubuntu --class
gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-simple-82b4acde-4db6-48b0-9d00-a09fb995b330' {
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7
--hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7
82b4acde-4db6-48b0-9d00-a09fb995b330
else
search --no-floppy --fs-uuid --set=root
82b4acde-4db6-48b0-9d00-a09fb995b330
fi
linux /boot/vmlinuz-5.11.0-36-generic
root=UUID=82b4acde-4db6-48b0-9d00-a09fb995b330 ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.11.0-36-generic
}
submenu 'Erweiterte Optionen für Ubuntu 20.04.3 LTS (20.04) (auf /dev/sda7)'
$menuentry_id_option
'osprober-gnulinux-advanced-82b4acde-4db6-48b0-9d00-a09fb995b330' {
menuentry 'Ubuntu (auf /dev/sda7)' --class gnu-linux --class gnu --class os
$menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-5.11.0-36-generic--82b4acde-4db6-48b0-9d00-a09fb995b330'
{
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7
--hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7
82b4acde-4db6-48b0-9d00-a09fb995b330
else
search --no-floppy --fs-uuid --set=root
82b4acde-4db6-48b0-9d00-a09fb995b330
fi
linux /boot/vmlinuz-5.11.0-36-generic
root=UUID=82b4acde-4db6-48b0-9d00-a09fb995b330 ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.11.0-36-generic
}
menuentry 'Ubuntu, mit Linux 5.11.0-36-generic (auf /dev/sda7)' --class
gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-5.11.0-36-generic--82b4acde-4db6-48b0-9d00-a09fb995b330'
{
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7
--hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7
82b4acde-4db6-48b0-9d00-a09fb995b330
else
search --no-floppy --fs-uuid --set=root
82b4acde-4db6-48b0-9d00-a09fb995b330
fi
linux /boot/vmlinuz-5.11.0-36-generic
root=UUID=82b4acde-4db6-48b0-9d00-a09fb995b330 ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.11.0-36-generic
}
menuentry 'Ubuntu, mit Linux 5.11.0-36-generic (recovery mode) (auf
/dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-5.11.0-36-generic-root=UUID=82b4acde-4db6-48b0-9d00-a09fb995b330
ro recovery nomodeset dis_ucode_ldr-82b4acde-4db6-48b0-9d00-a09fb995b330' {
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7
--hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7
82b4acde-4db6-48b0-9d00-a09fb995b330
else
search --no-floppy --fs-uuid --set=root
82b4acde-4db6-48b0-9d00-a09fb995b330
fi
linux /boot/vmlinuz-5.11.0-36-generic
root=UUID=82b4acde-4db6-48b0-9d00-a09fb995b330 ro recovery nomodeset
dis_ucode_ldr
initrd /boot/initrd.img-5.11.0-36-generic
}
menuentry 'Ubuntu, mit Linux 5.8.0-59-generic (auf /dev/sda7)' --class
gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-5.8.0-59-generic--82b4acde-4db6-48b0-9d00-a09fb995b330'
{
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7
--hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7
82b4acde-4db6-48b0-9d00-a09fb995b330
else
search --no-floppy --fs-uuid --set=root
82b4acde-4db6-48b0-9d00-a09fb995b330
fi
linux /boot/vmlinuz-5.8.0-59-generic
root=UUID=82b4acde-4db6-48b0-9d00-a09fb995b330 ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.8.0-59-generic
}
menuentry 'Ubuntu, mit Linux 5.8.0-59-generic (recovery mode) (auf
/dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-5.8.0-59-generic-root=UUID=82b4acde-4db6-48b0-9d00-a09fb995b330
ro recovery nomodeset dis_ucode_ldr-82b4acde-4db6-48b0-9d00-a09fb995b330' {
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7
--hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7
82b4acde-4db6-48b0-9d00-a09fb995b330
else
search --no-floppy --fs-uuid --set=root
82b4acde-4db6-48b0-9d00-a09fb995b330
fi
linux /boot/vmlinuz-5.8.0-59-generic
root=UUID=82b4acde-4db6-48b0-9d00-a09fb995b330 ro recovery nomodeset
dis_ucode_ldr
initrd /boot/initrd.img-5.8.0-59-generic
}
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### 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 ###
=========================================================>
Both are existant:
- /dev/sda1/boot/grub/grubenv
- /dev/sda9/boot/grub/grubenv
With the alternative below, at least "GRUB_TIMEOUT=5" works as expected, but
"GRUB_DEFAULT=saved" never works.
/dev/sda1/boot/grub/grub.cfg (( Version 2 ))
<=========================================================
[.......]
menuentry "Menü von Ubuntu-32 18.04 auf /dev/sda9" {
insmod part_gpt
insmod ext2
insmod configfile
insmod test
insmod loadenv
insmod all_video
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
insmod gettext
insmod gzio
insmod xzio
insmod lzopio
insmod linux
insmod linuxefi
search --no-floppy --fs-uuid --set=root ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
# configfile /boot/grub/grub.cfg
}
[.......]
=========================================================>
So I'm wondering, as grubenv now seems correctly found.
Does one have an idea, how to make "GRUB_DEFAULT=saved" working here?
Thanks in advance,
-Ulf
- GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here,
Ulf Zibis <=
- Re: GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here, Andrei Borzenkov, 2021/10/16
- Re: GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here, Ulf Zibis, 2021/10/16
- Re: GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here, Andrei Borzenkov, 2021/10/17
- Re: GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here, Ulf Zibis, 2021/10/21
- Re: GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here, Ulf Zibis, 2021/10/21
- Re: GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here, Andrei Borzenkov, 2021/10/21
- Re: GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here, Ulf Zibis, 2021/10/21
- Re: GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here, Andrei Borzenkov, 2021/10/21
- Re: GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here, Ulf Zibis, 2021/10/21
- Re: GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here, Ulf Zibis, 2021/10/22