Bug#782439: grub-pc: Grub does not remaing completely hidden in "hidden" mode

Ralf Jung post at ralfj.de
Sun Apr 12 09:20:30 UTC 2015


Package: grub-pc
Version: 2.02~beta2-22
Severity: normal

Dear Maintainer,

Steps to reproduce:
Set GRUB_TIMEOUT_STYLE=hidden in /etc/default/grub

Expected behaviour:
Grub remains hidden during boot.

Actual behaviour:
* If Windows is set up as a default:
  Grub appears as a short flash after the timeout is done, and before
  the Windows bootscreen appears
* If Debian is ser up as default:
  Grub appears to show that it loads the kernel.

I am not entirely surprised by the fact that grub appears 
on screen when booting Linux (after all, it actually still has
to do something there), However, when it boots windows and
just hands off to the next loader, IMHO there is no reason
for grub to appear on screen - so a completely "silent" boot
should be possible.

Kind regards,
Ralf

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/dm-1 / ext4 rw,relatime,discard,errors=remount-ro,data=ordered 0 0
/dev/mapper/cryptvg-homelv /home ext4 rw,relatime,discard,errors=remount-ro,data=ordered 0 0
/dev/sdb2 /boot ext4 rw,relatime,discard,errors=remount-ro,data=ordered 0 0
/dev/mapper/store /mnt/store ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-Hitachi_HTS547575A9E384_J2540059C322KE
*********************** END /boot/grub/device.map

*********************** 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_msdos
insmod ext2
set root='hd1,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
else
  search --no-floppy --fs-uuid --set=root d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
fi
    font="/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=hidden
    set timeout=3
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 3 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd1,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
else
  search --no-floppy --fs-uuid --set=root d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
fi
insmod png
if background_image /grub/.background_cache.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-4996e1f6-5056-481c-b040-a36752f7f30e' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
	else
	  search --no-floppy --fs-uuid --set=root d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
	fi
	echo	'Loading Linux 3.16.0-4-amd64 ...'
	linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/cryptvg-rootlv ro  quiet splash
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-3.16.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-4996e1f6-5056-481c-b040-a36752f7f30e' {
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-4996e1f6-5056-481c-b040-a36752f7f30e' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
		else
		  search --no-floppy --fs-uuid --set=root d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/cryptvg-rootlv ro  quiet splash
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-init-sysvinit-4996e1f6-5056-481c-b040-a36752f7f30e' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
		else
		  search --no-floppy --fs-uuid --set=root d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/cryptvg-rootlv ro  quiet splash init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-4996e1f6-5056-481c-b040-a36752f7f30e' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
		else
		  search --no-floppy --fs-uuid --set=root d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/cryptvg-rootlv ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14.0' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14.0-advanced-4996e1f6-5056-481c-b040-a36752f7f30e' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
		else
		  search --no-floppy --fs-uuid --set=root d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
		fi
		echo	'Loading Linux 3.14.0 ...'
		linux	/vmlinuz-3.14.0 root=/dev/mapper/cryptvg-rootlv ro  quiet splash
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.14.0
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14.0 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14.0-init-sysvinit-4996e1f6-5056-481c-b040-a36752f7f30e' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
		else
		  search --no-floppy --fs-uuid --set=root d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
		fi
		echo	'Loading Linux 3.14.0 ...'
		linux	/vmlinuz-3.14.0 root=/dev/mapper/cryptvg-rootlv ro  quiet splash init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.14.0
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14.0 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14.0-recovery-4996e1f6-5056-481c-b040-a36752f7f30e' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
		else
		  search --no-floppy --fs-uuid --set=root d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
		fi
		echo	'Loading Linux 3.14.0 ...'
		linux	/vmlinuz-3.14.0 root=/dev/mapper/cryptvg-rootlv ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.14.0
	}
}

### 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 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-28EE13B9EE137DEE' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  28EE13B9EE137DEE
	else
	  search --no-floppy --fs-uuid --set=root 28EE13B9EE137DEE
	fi
	parttool ${root} hidden-
	chainloader +1
}
### 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 ###

### BEGIN /etc/grub.d/42_grml ###
menuentry "Grml Rescue System (grml32-small_2014.11.iso)" {
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
        else
          search --no-floppy --fs-uuid --set=root d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
        fi
        iso_path="/grml/grml32-small_2014.11.iso"
        export iso_path
        kernelopts="   "
        export kernelopts
        loopback loop "/grml/grml32-small_2014.11.iso"
        set root=(loop)
        configfile /boot/grub/loopback.cfg
}
### END /etc/grub.d/42_grml ###
*********************** 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 Apr 12 11:15 ata-Hitachi_HTS547575A9E384_J2540059C322KE -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 12 11:15 ata-Hitachi_HTS547575A9E384_J2540059C322KE-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 12 11:15 ata-Hitachi_HTS547575A9E384_J2540059C322KE-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 12 11:15 ata-Hitachi_HTS547575A9E384_J2540059C322KE-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Apr 12 11:15 ata-Samsung_SSD_840_PRO_Series_S1ATNSAD717874B -> ../../sdb
lrwxrwxrwx 1 root root 10 Apr 12 11:15 ata-Samsung_SSD_840_PRO_Series_S1ATNSAD717874B-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Apr 12 11:15 ata-Samsung_SSD_840_PRO_Series_S1ATNSAD717874B-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Apr 12 11:15 dm-name-cryptpv -> ../../dm-0
lrwxrwxrwx 1 root root 10 Apr 12 11:15 dm-name-cryptvg-homelv -> ../../dm-2
lrwxrwxrwx 1 root root 10 Apr 12 11:15 dm-name-cryptvg-rootlv -> ../../dm-1
lrwxrwxrwx 1 root root 10 Apr 12 11:15 dm-name-cryptvg-swaplv -> ../../dm-3
lrwxrwxrwx 1 root root 10 Apr 12 11:15 dm-name-store -> ../../dm-4
lrwxrwxrwx 1 root root 10 Apr 12 11:15 dm-uuid-CRYPT-LUKS1-406e399ce7b142b48a2ff35346797b8f-cryptpv -> ../../dm-0
lrwxrwxrwx 1 root root 10 Apr 12 11:15 dm-uuid-CRYPT-LUKS1-eb47411882cb4d1f9bd2c81aa96896ad-store -> ../../dm-4
lrwxrwxrwx 1 root root 10 Apr 12 11:15 dm-uuid-LVM-sApY335FtcFuHL2m19uYEfus1ztFVjpNKF1Y0gALnWEBRKiPAkcEYexuCXOFW40j -> ../../dm-1
lrwxrwxrwx 1 root root 10 Apr 12 11:15 dm-uuid-LVM-sApY335FtcFuHL2m19uYEfus1ztFVjpNOEiDlPiIwuIw9sD30JQ2Tn5K3fZNscH2 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Apr 12 11:15 dm-uuid-LVM-sApY335FtcFuHL2m19uYEfus1ztFVjpNmTjHP0oJbPs8IQQZdXoyJHWy9XelP7kG -> ../../dm-2
lrwxrwxrwx 1 root root 10 Apr 12 11:15 lvm-pv-uuid-pSnle7-vu3S-t2pM-Mt7p-dRlq-YiTP-VxucVI -> ../../dm-0
lrwxrwxrwx 1 root root  9 Apr 12 11:15 wwn-0x5000cca6dfc164ee -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 12 11:15 wwn-0x5000cca6dfc164ee-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 12 11:15 wwn-0x5000cca6dfc164ee-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 12 11:15 wwn-0x5000cca6dfc164ee-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Apr 12 11:15 wwn-0x50025385a00884b2 -> ../../sdb
lrwxrwxrwx 1 root root 10 Apr 12 11:15 wwn-0x50025385a00884b2-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Apr 12 11:15 wwn-0x50025385a00884b2-part3 -> ../../sdb3
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Apr 12 11:15 246A2D046A2CD478 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 12 11:15 28EE13B9EE137DEE -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 12 11:15 406e399c-e7b1-42b4-8a2f-f35346797b8f -> ../../sdb3
lrwxrwxrwx 1 root root 10 Apr 12 11:15 4996e1f6-5056-481c-b040-a36752f7f30e -> ../../dm-1
lrwxrwxrwx 1 root root 10 Apr 12 11:15 d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f -> ../../sdb2
lrwxrwxrwx 1 root root 10 Apr 12 11:15 d2c59b0a-38ce-419d-b69b-8459268227e4 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Apr 12 11:15 d74db28b-0074-4b1f-95ed-6c342933b8f0 -> ../../dm-4
lrwxrwxrwx 1 root root 10 Apr 12 11:15 eb474118-82cb-4d1f-9bd2-c81aa96896ad -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 12 11:15 f7a4f6a0-ad70-4b5c-91f6-54b7201912fd -> ../../dm-2
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (990, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14.0 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.56
ii  grub-common            2.02~beta2-22
ii  grub-pc-bin            2.02~beta2-22
ii  grub2-common           2.02~beta2-22
ii  ucf                    3.0030

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information excluded



More information about the Pkg-grub-devel mailing list