Bug#1061433: grub-common: duplicate "single" in /etc/grub.d/10_linux
Vincent Lefevre
vincent at vinc17.net
Wed Jan 24 11:44:55 GMT 2024
Package: grub-common
Version: 2.12-1
Severity: minor
In the generated /boot/grub/grub.cfg file:
linux /boot/vmlinuz-6.6.11-amd64 root=... ro single single dis_ucode_ldr
There is a duplicate "single".
/etc/grub.d/10_linux has
: ${GRUB_CMDLINE_LINUX_RECOVERY:=single}
[...]
if [ -x /lib/recovery-mode/recovery-menu ]; then
GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} recovery"
else
GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} single"
fi
So one may get "single" twice.
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/sda5 / ext4 rw,relatime,errors=remount-ro 0 0
*********************** END /proc/mounts
*********************** BEGIN /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
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 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,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
else
search --no-floppy --fs-uuid --set=root 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=1024x768 640x480
load_video
insmod gfxterm
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 ###
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
else
search --no-floppy --fs-uuid --set=root 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
fi
insmod png
if background_image /usr/share/desktop-base/emerald-theme/grub/grub-4x3.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=keep
export linux_gfx_mode
menuentry 'Debian GNU/Linux, with Linux 6.6.11-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.11-amd64-advanced-4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0' {
savedefault
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
else
search --no-floppy --fs-uuid --set=root 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
fi
echo 'Loading Linux 6.6.11-amd64 ...'
linux /boot/vmlinuz-6.6.11-amd64 root=UUID=4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.6.11-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.6.11-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.11-amd64-recovery-4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0' {
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
else
search --no-floppy --fs-uuid --set=root 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
fi
echo 'Loading Linux 6.6.11-amd64 ...'
linux /boot/vmlinuz-6.6.11-amd64 root=UUID=4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0 ro single single dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.6.11-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.6.9-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.9-amd64-advanced-4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0' {
savedefault
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
else
search --no-floppy --fs-uuid --set=root 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
fi
echo 'Loading Linux 6.6.9-amd64 ...'
linux /boot/vmlinuz-6.6.9-amd64 root=UUID=4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.6.9-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.6.9-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.9-amd64-recovery-4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0' {
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
else
search --no-floppy --fs-uuid --set=root 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
fi
echo 'Loading Linux 6.6.9-amd64 ...'
linux /boot/vmlinuz-6.6.9-amd64 root=UUID=4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0 ro single single dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.6.9-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.1.0-17-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-17-amd64-advanced-4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0' {
savedefault
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
else
search --no-floppy --fs-uuid --set=root 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
fi
echo 'Loading Linux 6.1.0-17-amd64 ...'
linux /boot/vmlinuz-6.1.0-17-amd64 root=UUID=4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.1.0-17-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.1.0-17-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-17-amd64-recovery-4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0' {
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
else
search --no-floppy --fs-uuid --set=root 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0
fi
echo 'Loading Linux 6.1.0-17-amd64 ...'
linux /boot/vmlinuz-6.1.0-17-amd64 root=UUID=4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0 ro single single dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.1.0-17-amd64
}
### 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_bli ###
if [ "$grub_platform" = "efi" ]; then
insmod bli
fi
### END /etc/grub.d/25_bli ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
fwsetup --is-supported
if [ "$?" = 0 ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
fi
fi
### 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 ###
*********************** END /boot/grub/grub.cfg
*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 2024-01-23 16:44:28 ata-HL-DT-ST_DVD+_-RW_GHB0N_K74ECIG5041 -> ../../sr1
lrwxrwxrwx 1 root root 9 2024-01-23 16:44:31 ata-HL-DT-ST_DVD+_-RW_GTA0N_KZIF4DG4119 -> ../../sr0
lrwxrwxrwx 1 root root 9 2024-01-23 16:44:28 ata-SK_hynix_SH920_2.5_7MM_512GB_1I45N12261160645N -> ../../sda
lrwxrwxrwx 1 root root 10 2024-01-23 16:44:28 ata-SK_hynix_SH920_2.5_7MM_512GB_1I45N12261160645N-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2024-01-23 16:44:28 ata-SK_hynix_SH920_2.5_7MM_512GB_1I45N12261160645N-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2024-01-23 16:44:28 ata-SK_hynix_SH920_2.5_7MM_512GB_1I45N12261160645N-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 2024-01-23 16:44:28 ata-SK_hynix_SH920_2.5_7MM_512GB_1I45N12261160645N-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 2024-01-23 16:44:28 ata-SK_hynix_SH920_2.5_7MM_512GB_1I45N12261160645N-part6 -> ../../sda6
lrwxrwxrwx 1 root root 9 2024-01-23 16:44:31 wwn-0x5001480000000000 -> ../../sr1
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 2024-01-23 16:44:28 3a31982a-76fe-493b-a6b0-a627706c26c7 -> ../../sda6
lrwxrwxrwx 1 root root 10 2024-01-23 16:44:28 4bcb3bbd-f516-4ddf-be96-6fa3a8cdc8a0 -> ../../sda5
lrwxrwxrwx 1 root root 10 2024-01-23 16:44:28 5450-4444 -> ../../sda1
lrwxrwxrwx 1 root root 10 2024-01-23 16:44:28 F07B-1091 -> ../../sda2
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.6.11-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages grub-common depends on:
ii gettext-base 0.21-14
ii libc6 2.37-14
ii libdevmapper1.02.1 2:1.02.185-3
ii libefiboot1 38-3
ii libefivar1 38-3
ii libfreetype6 2.13.2+dfsg-1+b1
ii libfuse3-3 3.14.0-5
ii liblzma5 5.4.5-0.3
Versions of packages grub-common recommends:
ii os-prober 1.81
Versions of packages grub-common suggests:
ii console-setup 1.223
ii desktop-base 12.0.6+nmu1
pn grub-emu <none>
pn mtools <none>
pn multiboot-doc <none>
pn xorriso <none>
-- no debconf information
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the Pkg-grub-devel
mailing list