Grub 2: boot order.
by stf92 from LinuxQuestions.org on (#57548)
Slackware64-current
Kernel 5.4.50
Hi: There are two partitions in my hard disk: In one I have Debian 10 and in the other Slackware-current (july 2020). I use the grub (perhaps grub 2) boot loader. Up to now the boot order was Debian first and then Slackware. Now I have just edited /etc/default/grub and changed the zero in the first line to a one:
Code:bill@darkstar:/etc/default$ cat grub
# If you change this file, run grub-mkconfig -o /boot/grub/grub.cfg
# afterwards to update /boot/grub/grub.cfg.
GRUB_DEFAULT=1
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=$( sed 's/Slackware /Slackware-/' /etc/slackware-version )
GRUB_CMDLINE_LINUX_DEFAULT="edd=off noapic i8042.nopnp"
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=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=640x480
#GRUB_GFXMODE=1024x768x32
# Font used on the graphical terminal:
#GRUB_FONT=/usr/share/grub/dejavusansmono.pf2
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
bill@darkstar:/etc/default$Then I ran grub-mkconfig. Now, when booting, the grub menu shows Slackware first. But a curious thing happens. The asterisk is not in the first line but in the second one (advanced options). So, if I don't touch the keyboard, after 5 seconds the machine boots "Slackware-Advanced options". This is the grub.cfg file:
Code:bill@darkstar:/boot/grub$ cat /boot/grub/grub.cfg
cat: /boot/grub/grub.cfg: Permission denied
bill@darkstar:/boot/grub$ sudo cat /boot/grub/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 ###
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="1"
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=dejavusansmono
else
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
font="/usr/share/grub/dejavusansmono.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_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Slackware-14.2+ GNU/Linux' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux 5.4.50 ...'
linux /boot/vmlinuz-huge-5.4.50 root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro edd=off noapic i8042.nopnp
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
submenu 'Advanced options for Slackware-14.2+ GNU/Linux' $menuentry_id_option 'gnulinux-advanced-70a70011-b918-40ff-8468-565327d809f2' {
menuentry 'Slackware-14.2+ GNU/Linux, with Linux 5.4.50' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.50-advanced-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux 5.4.50 ...'
linux /boot/vmlinuz-huge-5.4.50 root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro edd=off noapic i8042.nopnp
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux 5.4.50 (recovery mode)' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.50-recovery-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux 5.4.50 ...'
linux /boot/vmlinuz-huge-5.4.50 root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux huge' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-huge-advanced-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux huge ...'
linux /boot/vmlinuz-huge root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro edd=off noapic i8042.nopnp
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux huge (recovery mode)' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-huge-recovery-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux huge ...'
linux /boot/vmlinuz-huge root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux 5.4.50' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.50-advanced-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux 5.4.50 ...'
linux /boot/vmlinuz-generic-5.4.50 root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro edd=off noapic i8042.nopnp
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux 5.4.50 (recovery mode)' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.50-recovery-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux 5.4.50 ...'
linux /boot/vmlinuz-generic-5.4.50 root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux generic' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-generic-advanced-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux generic ...'
linux /boot/vmlinuz-generic root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro edd=off noapic i8042.nopnp
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux generic (recovery mode)' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-generic-recovery-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux generic ...'
linux /boot/vmlinuz-generic root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Debian GNU/Linux 10 (buster) (on /dev/mmcblk0p1)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
else
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
fi
linux /boot/vmlinuz-4.19.0-9-amd64 root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro edd=off noapic i8042.nopnp quiet
initrd /boot/initrd.img-4.19.0-9-amd64
}
submenu 'Advanced options for Debian GNU/Linux 10 (buster) (on /dev/mmcblk0p1)' $menuentry_id_option 'osprober-gnulinux-advanced-3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
menuentry 'Debian GNU/Linux (on /dev/mmcblk0p1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.0-9-amd64--3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
else
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
fi
linux /boot/vmlinuz-4.19.0-9-amd64 root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro edd=off noapic i8042.nopnp quiet
initrd /boot/initrd.img-4.19.0-9-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-9-amd64 (on /dev/mmcblk0p1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.0-9-amd64--3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
else
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
fi
linux /boot/vmlinuz-4.19.0-9-amd64 root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro edd=off noapic i8042.nopnp quiet
initrd /boot/initrd.img-4.19.0-9-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-9-amd64 (recovery mode) (on /dev/mmcblk0p1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.0-9-amd64-root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro single edd=off noapic i8042.nopnp-3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
else
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
fi
linux /boot/vmlinuz-4.19.0-9-amd64 root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro single edd=off noapic i8042.nopnp
initrd /boot/initrd.img-4.19.0-9-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-8-amd64 (on /dev/mmcblk0p1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.0-8-amd64--3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
else
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
fi
linux /boot/vmlinuz-4.19.0-8-amd64 root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro edd=off noapic i8042.nopnp quiet
initrd /boot/initrd.img-4.19.0-8-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-8-amd64 (recovery mode) (on /dev/mmcblk0p1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.0-8-amd64-root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro single edd=off noapic i8042.nopnp-3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
else
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
fi
linux /boot/vmlinuz-4.19.0-8-amd64 root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro single edd=off noapic i8042.nopnp
initrd /boot/initrd.img-4.19.0-8-amd64
}
}
### END /etc/grub.d/30_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 ###
bill@darkstar:/boot/grub$What is happening here?


Kernel 5.4.50
Hi: There are two partitions in my hard disk: In one I have Debian 10 and in the other Slackware-current (july 2020). I use the grub (perhaps grub 2) boot loader. Up to now the boot order was Debian first and then Slackware. Now I have just edited /etc/default/grub and changed the zero in the first line to a one:
Code:bill@darkstar:/etc/default$ cat grub
# If you change this file, run grub-mkconfig -o /boot/grub/grub.cfg
# afterwards to update /boot/grub/grub.cfg.
GRUB_DEFAULT=1
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=$( sed 's/Slackware /Slackware-/' /etc/slackware-version )
GRUB_CMDLINE_LINUX_DEFAULT="edd=off noapic i8042.nopnp"
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=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=640x480
#GRUB_GFXMODE=1024x768x32
# Font used on the graphical terminal:
#GRUB_FONT=/usr/share/grub/dejavusansmono.pf2
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
bill@darkstar:/etc/default$Then I ran grub-mkconfig. Now, when booting, the grub menu shows Slackware first. But a curious thing happens. The asterisk is not in the first line but in the second one (advanced options). So, if I don't touch the keyboard, after 5 seconds the machine boots "Slackware-Advanced options". This is the grub.cfg file:
Code:bill@darkstar:/boot/grub$ cat /boot/grub/grub.cfg
cat: /boot/grub/grub.cfg: Permission denied
bill@darkstar:/boot/grub$ sudo cat /boot/grub/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 ###
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="1"
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=dejavusansmono
else
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
font="/usr/share/grub/dejavusansmono.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_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Slackware-14.2+ GNU/Linux' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux 5.4.50 ...'
linux /boot/vmlinuz-huge-5.4.50 root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro edd=off noapic i8042.nopnp
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
submenu 'Advanced options for Slackware-14.2+ GNU/Linux' $menuentry_id_option 'gnulinux-advanced-70a70011-b918-40ff-8468-565327d809f2' {
menuentry 'Slackware-14.2+ GNU/Linux, with Linux 5.4.50' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.50-advanced-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux 5.4.50 ...'
linux /boot/vmlinuz-huge-5.4.50 root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro edd=off noapic i8042.nopnp
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux 5.4.50 (recovery mode)' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.50-recovery-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux 5.4.50 ...'
linux /boot/vmlinuz-huge-5.4.50 root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux huge' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-huge-advanced-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux huge ...'
linux /boot/vmlinuz-huge root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro edd=off noapic i8042.nopnp
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux huge (recovery mode)' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-huge-recovery-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux huge ...'
linux /boot/vmlinuz-huge root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux 5.4.50' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.50-advanced-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux 5.4.50 ...'
linux /boot/vmlinuz-generic-5.4.50 root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro edd=off noapic i8042.nopnp
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux 5.4.50 (recovery mode)' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.50-recovery-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux 5.4.50 ...'
linux /boot/vmlinuz-generic-5.4.50 root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux generic' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-generic-advanced-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux generic ...'
linux /boot/vmlinuz-generic root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro edd=off noapic i8042.nopnp
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-14.2+ GNU/Linux, with Linux generic (recovery mode)' --class slackware_14_2_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-generic-recovery-70a70011-b918-40ff-8468-565327d809f2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
else
search --no-floppy --fs-uuid --set=root 70a70011-b918-40ff-8468-565327d809f2
fi
echo 'Loading Linux generic ...'
linux /boot/vmlinuz-generic root=UUID=70a70011-b918-40ff-8468-565327d809f2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Debian GNU/Linux 10 (buster) (on /dev/mmcblk0p1)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
else
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
fi
linux /boot/vmlinuz-4.19.0-9-amd64 root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro edd=off noapic i8042.nopnp quiet
initrd /boot/initrd.img-4.19.0-9-amd64
}
submenu 'Advanced options for Debian GNU/Linux 10 (buster) (on /dev/mmcblk0p1)' $menuentry_id_option 'osprober-gnulinux-advanced-3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
menuentry 'Debian GNU/Linux (on /dev/mmcblk0p1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.0-9-amd64--3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
else
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
fi
linux /boot/vmlinuz-4.19.0-9-amd64 root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro edd=off noapic i8042.nopnp quiet
initrd /boot/initrd.img-4.19.0-9-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-9-amd64 (on /dev/mmcblk0p1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.0-9-amd64--3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
else
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
fi
linux /boot/vmlinuz-4.19.0-9-amd64 root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro edd=off noapic i8042.nopnp quiet
initrd /boot/initrd.img-4.19.0-9-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-9-amd64 (recovery mode) (on /dev/mmcblk0p1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.0-9-amd64-root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro single edd=off noapic i8042.nopnp-3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
else
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
fi
linux /boot/vmlinuz-4.19.0-9-amd64 root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro single edd=off noapic i8042.nopnp
initrd /boot/initrd.img-4.19.0-9-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-8-amd64 (on /dev/mmcblk0p1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.0-8-amd64--3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
else
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
fi
linux /boot/vmlinuz-4.19.0-8-amd64 root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro edd=off noapic i8042.nopnp quiet
initrd /boot/initrd.img-4.19.0-8-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-8-amd64 (recovery mode) (on /dev/mmcblk0p1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.0-8-amd64-root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro single edd=off noapic i8042.nopnp-3b7be193-a2fd-4b48-8d07-bd2311b0f5ba' {
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
else
search --no-floppy --fs-uuid --set=root 3b7be193-a2fd-4b48-8d07-bd2311b0f5ba
fi
linux /boot/vmlinuz-4.19.0-8-amd64 root=UUID=3b7be193-a2fd-4b48-8d07-bd2311b0f5ba ro single edd=off noapic i8042.nopnp
initrd /boot/initrd.img-4.19.0-8-amd64
}
}
### END /etc/grub.d/30_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 ###
bill@darkstar:/boot/grub$What is happening here?