Bug#841680: grub-common: ignores GRUB_DISABLE_LINUX_UUID option

Manolo Díaz diaz.manolo at gmail.com
Sat Oct 22 07:58:35 UTC 2016


Package: grub-common
Version: 2.02~beta3-1
Severity: important

Dear Maintainer,

Although my /etc/default/grub contains GRUB_DISABLE_LINUX_UUID=true
grub-mkconfig output lines likes these:

menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu
--class os $menuentry_id_option 'gnulinux-simple-b067ac2e-cc37-4273-b6dc-
af74b6d99825' {
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-
efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  b067ac2e-cc37-4273-b6dc-af74b6d99825
        else
          search --no-floppy --fs-uuid --set=root b067ac2e-cc37-4273-b6dc-
af74b6d99825
        fi
        echo    'Cargando Linux 4.7.8...'
        linux   /boot/vmlinuz-4.7.8 root=UUID=b067ac2e-cc37-4273-b6dc-
af74b6d99825 ro libata.force=3.0Gbps snd-hda-intel.index=1,0 resume=/dev/sda4
resume_offset=31752192
        echo    'Cargando imagen de memoria inicial...'
        initrd  /boot/initrd-4.7.8
}

which makes my system unbootable without editing /boot/grub/grub.cfg.
Please note that the grub.cfg file automatically attached below has been
previously edited by me in order to make my system bootable.

Best Regards,
Manolo Díaz



-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/root / ext4 rw,relatime,nobarrier,data=ordered 0 0
/dev/sda3 /home ext4 rw,nosuid,nodev,relatime,nobarrier,data=ordered 0 0
/dev/sda4 /usr/local ext4 rw,nodev,noatime,nobarrier,data=ordered 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="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_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  /dev/sda2
else
  search --no-floppy --set=root /dev/sda2
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=es_ES
  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 ###
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  /dev/sda2
else
  search --no-floppy --set=root /dev/sda2
fi
insmod png
if background_image /usr/share/images/desktop-base/lines-grub.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=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-/dev/sda2' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  /dev/sda2
	else
	  search --no-floppy --set=root /dev/sda2
	fi
	echo	'Cargando Linux 4.7.8...'
	linux	/boot/vmlinuz-4.7.8 root=UUID=/dev/sda2 ro libata.force=3.0Gbps snd-hda-intel.index=1,0 resume=/dev/sda4 resume_offset=31752192
	echo	'Cargando imagen de memoria inicial...'
	initrd	/boot/initrd-4.7.8
}
submenu 'Opciones avanzadas para Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-/dev/sda2' {
	menuentry 'Debian GNU/Linux, con Linux 4.7.8' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.7.8-advanced-/dev/sda2' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  /dev/sda2
		else
		  search --no-floppy --set=root /dev/sda2
		fi
		echo	'Cargando Linux 4.7.8...'
		linux	/boot/vmlinuz-4.7.8 root=UUID=/dev/sda2 ro libata.force=3.0Gbps snd-hda-intel.index=1,0 resume=/dev/sda4 resume_offset=31752192
		echo	'Cargando imagen de memoria inicial...'
		initrd	/boot/initrd-4.7.8
	}
	menuentry 'Debian GNU/Linux, with Linux 4.7.8 (systemd)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.7.8-init-systemd-/dev/sda2' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  /dev/sda2
		else
		  search --no-floppy --set=root /dev/sda2
		fi
		echo	'Cargando Linux 4.7.8...'
		linux	/boot/vmlinuz-4.7.8 root=UUID=/dev/sda2 ro libata.force=3.0Gbps snd-hda-intel.index=1,0 resume=/dev/sda4 resume_offset=31752192  init=/lib/systemd/systemd
		echo	'Cargando imagen de memoria inicial...'
		initrd	/boot/initrd-4.7.8
	}
	menuentry 'Debian GNU/Linux, con Linux 4.7.6' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.7.6-advanced-/dev/sda2' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  /dev/sda2
		else
		  search --no-floppy --set=root /dev/sda2
		fi
		echo	'Cargando Linux 4.7.6...'
		linux	/boot/vmlinuz-4.7.6 root=UUID=/dev/sda2 ro libata.force=3.0Gbps snd-hda-intel.index=1,0 resume=/dev/sda4 resume_offset=31752192
		echo	'Cargando imagen de memoria inicial...'
		initrd	/boot/initrd-4.7.6
	}
	menuentry 'Debian GNU/Linux, with Linux 4.7.6 (systemd)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.7.6-init-systemd-/dev/sda2' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  /dev/sda2
		else
		  search --no-floppy --set=root /dev/sda2
		fi
		echo	'Cargando Linux 4.7.6...'
		linux	/boot/vmlinuz-4.7.6 root=UUID=/dev/sda2 ro libata.force=3.0Gbps snd-hda-intel.index=1,0 resume=/dev/sda4 resume_offset=31752192  init=/lib/systemd/systemd
		echo	'Cargando imagen de memoria inicial...'
		initrd	/boot/initrd-4.7.6
	}
}

### 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+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  /dev/sda2
	else
	  search --no-floppy --set=root /dev/sda2
	fi
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  /dev/sda2
	else
	  search --no-floppy --set=root /dev/sda2
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  /dev/sda2
	else
	  search --no-floppy --set=root /dev/sda2
	fi
	multiboot	/boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  /dev/sda2
	else
	  search --no-floppy --set=root /dev/sda2
	fi
	multiboot	/boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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.
menuentry 'SystemRescueCd 64bit' -class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	linux	/boot/sysrcd/rescue64 subdir=boot/sysrcd setkmap=es docache
	initrd	/boot/sysrcd/initram.igz
}
### 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 ###

### BEGIN /etc/grub.d/60_grub-imageboot ###
### END /etc/grub.d/60_grub-imageboot ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN LVM
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Oct 22 09:29 ata-WDC_WD3003FZEX-00Z4SA0_WD-WMC130DAL503 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 22 09:29 ata-WDC_WD3003FZEX-00Z4SA0_WD-WMC130DAL503-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 22 09:29 ata-WDC_WD3003FZEX-00Z4SA0_WD-WMC130DAL503-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 22 09:29 ata-WDC_WD3003FZEX-00Z4SA0_WD-WMC130DAL503-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Oct 22 09:29 ata-WDC_WD3003FZEX-00Z4SA0_WD-WMC130DAL503-part4 -> ../../sda4
lrwxrwxrwx 1 root root  9 Oct 22 09:29 wwn-0x50014ee003e5ffb7 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 22 09:29 wwn-0x50014ee003e5ffb7-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 22 09:29 wwn-0x50014ee003e5ffb7-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 22 09:29 wwn-0x50014ee003e5ffb7-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Oct 22 09:29 wwn-0x50014ee003e5ffb7-part4 -> ../../sda4
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Oct 22 09:29 290bd0ef-5019-451e-a47e-72d260bc23f7 -> ../../sda3
lrwxrwxrwx 1 root root 10 Oct 22 09:29 733bfd7b-e431-4c28-80fd-ec51067c23ee -> ../../sda4
lrwxrwxrwx 1 root root 10 Oct 22 09:29 b067ac2e-cc37-4273-b6dc-af74b6d99825 -> ../../sda2
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.8 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages grub-common depends on:
ii  gettext-base        0.19.8.1-1
ii  libc6               2.24-3
ii  libdevmapper1.02.1  2:1.02.133-1
ii  libfreetype6        2.6.3-3+b1
ii  libfuse2            2.9.7-1
ii  liblzma5            5.2.2-1.2

Versions of packages grub-common recommends:
pn  os-prober  <none>

Versions of packages grub-common suggests:
ii  console-setup  1.152
ii  desktop-base   8.0.2
pn  grub-emu       <none>
pn  multiboot-doc  <none>
pn  xorriso        <none>

-- Configuration Files:
/etc/grub.d/40_custom changed:
exec tail -n +3 $0
menuentry 'SystemRescueCd 64bit' -class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	linux	/boot/sysrcd/rescue64 subdir=boot/sysrcd setkmap=es docache
	initrd	/boot/sysrcd/initram.igz
}


-- no debconf information



More information about the Pkg-grub-devel mailing list