Bug#737820: grub-pc: postinst fails when ‘grub-mkconfig’ has non-zero exit status

Ben Finney ben+debian at benfinney.id.au
Thu Feb 6 07:59:47 UTC 2014


Package: grub-pc
Version: 2.00-22
Severity: normal

Dear Maintainer,

When the postinst for ‘grub-pc’ calls
‘/etc/kernel/postinst.d/zz-update-grub’, the process is aborted when
‘grub-mkconfig’ exits with status 1. This is apparently not an error,
though, and the process should not fail.

=====
/etc/kernel/postinst.d/zz-update-grub:
Generating grub.cfg ...
Found background: /usr/local/share/backgrounds/grub/winkler-gnu-blue.1024.tga
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.12-1-amd64.postinst line 587.
=====


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/7423af23-7742-41da-a662-0e66d631aa62 / ext4 rw,relatime,errors=remount-ro,commit=600,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-ST95005620AS_5YX1DCHP
*********************** 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
  load_env
fi
set default="0"
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 {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7423af23-7742-41da-a662-0e66d631aa62
if loadfont /boot/grub/dejavu-sans-mono.16.pf2 ; then
  set gfxmode=640x480x16;1280x1024x32;1024x768x32;800x600x16;640x480
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos1)'
  search --no-floppy --fs-uuid --set=root 7423af23-7742-41da-a662-0e66d631aa62
  set locale_dir=($root)/boot/grub/locale
  set lang=en_AU
  insmod gettext
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7423af23-7742-41da-a662-0e66d631aa62
insmod tga
background_image -m stretch /usr/local/share/backgrounds/grub/winkler-gnu-blue.1024.tga
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7423af23-7742-41da-a662-0e66d631aa62
insmod tga
if background_image /usr/local/share/backgrounds/grub/winkler-gnu-blue.1024.tga; then
  true
else
  set menu_color_normal=cyan/black
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.12-1-amd64' --class debian --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 7423af23-7742-41da-a662-0e66d631aa62
	echo	'Loading Linux 3.12-1-amd64 ...'
	linux	/boot/vmlinuz-3.12-1-amd64 root=UUID=7423af23-7742-41da-a662-0e66d631aa62 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.12-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.12-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 7423af23-7742-41da-a662-0e66d631aa62
	echo	'Loading Linux 3.12-1-amd64 ...'
	linux	/boot/vmlinuz-3.12-1-amd64 root=UUID=7423af23-7742-41da-a662-0e66d631aa62 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.12-1-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/30_os-prober ###
### 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  $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 Feb  6 18:49 ata-ST95005620AS_5YX1DCHP -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 26 12:20 ata-ST95005620AS_5YX1DCHP-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 26 12:20 ata-ST95005620AS_5YX1DCHP-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 26 12:20 ata-ST95005620AS_5YX1DCHP-part5 -> ../../sda5
lrwxrwxrwx 1 root root  9 Jan 28 14:40 ata-SlimtypeDVD_A_DS8A5S_106220115562 -> ../../sr0
lrwxrwxrwx 1 root root  9 Feb  6 18:49 scsi-SATA_ST95005620AS_5YX1DCHP -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 26 12:20 scsi-SATA_ST95005620AS_5YX1DCHP-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 26 12:20 scsi-SATA_ST95005620AS_5YX1DCHP-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 26 12:20 scsi-SATA_ST95005620AS_5YX1DCHP-part5 -> ../../sda5
lrwxrwxrwx 1 root root  9 Feb  6 18:49 wwn-0x5000c5003db3b600 -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 26 12:20 wwn-0x5000c5003db3b600-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 26 12:20 wwn-0x5000c5003db3b600-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 26 12:20 wwn-0x5000c5003db3b600-part5 -> ../../sda5
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jan 26 12:20 43dd41a9-c856-4eec-b1b6-b461395ceb68 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jan 26 12:20 7423af23-7742-41da-a662-0e66d631aa62 -> ../../sda1
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_AU.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.52
ii  grub-common            2.00-22
ii  grub-pc-bin            2.00-22
ii  grub2-common           2.00-22
ii  ucf                    3.0027+nmu1

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information:
  grub-pc/timeout: 5
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/kopt_extracted: false
  grub-pc/postrm_purge_boot_grub: false
  grub2/kfreebsd_cmdline_default: quiet
  grub2/kfreebsd_cmdline:
  grub-pc/mixed_legacy_and_grub2: true
  grub-pc/chainload_from_menu.lst: true
  grub-pc/install_devices_disks_changed:
  grub-pc/install_devices_empty: false
* grub2/linux_cmdline_default: quiet
  grub-pc/disk_description:
* grub-pc/install_devices: /dev/disk/by-id/ata-ST95005620AS_5YX1DCHP
* grub2/linux_cmdline:
  grub-pc/partition_description:
  grub-pc/install_devices_failed: false
  grub2/device_map_regenerated:
  grub-pc/hidden_timeout: false

-- 
 \      “Nullius in verba” (“Take no-one's word for it”) —motto of the |
  `\                                   Royal Society, since 1663-06-30 |
_o__)                                                                  |
Ben Finney <ben at benfinney.id.au>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20140206/c9c31599/attachment.sig>


More information about the Pkg-grub-devel mailing list