Bug#593242: grub-pc: zz-update-grub fails to run update-grub (quoting error)
Will Dyson
will_dyson at pobox.com
Mon Aug 16 15:29:12 UTC 2010
Package: grub-pc
Version: 1.98+20100804-2
Severity: normal
On lines 5 and 6 of /etc/kernel/postinst.d/zz-update-grub, the single-quote
character is not escaped. This prevents the substring removals from working
correctly, and the case comparison fails due to the presense of extra quote
characters.
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/30d92f58-ff1f-4e1c-b0d7-3d5329354106 / btrfs rw,noatime 0 0
/dev/md0 /boot ext3 rw,noatime,errors=continue,data=ordered 0 0
/dev/sdb2 /snapshot ext4 rw,noatime,barrier=1,data=ordered 0 0
/dev/sda4 /home btrfs rw,relatime 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-Maxtor_6L250S0_L5030Z1G
(hd1) /dev/disk/by-id/ata-WDC_WD5000AAKS-32TMA0_WD-WCAPW5492844
(hd2) /dev/disk/by-id/md-uuid-9a7f88a7:ca107ef9:479d0c37:7b58099d
*********************** END /boot/grub/device.map
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8)
Shell: /bin/sh linked to /bin/bash
Versions of packages grub-pc depends on:
ii debconf [debconf-2.0] 1.5.35 Debian configuration management sy
ii grub-common 1.98+20100804-2 GRand Unified Bootloader, version
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libdevmapper1.02.1 2:1.02.48-2 The Linux Kernel Device Mapper use
ii ucf 3.0025 Update Configuration File: preserv
grub-pc recommends no packages.
Versions of packages grub-pc suggests:
ii desktop-base 5.0.6 common files for the Debian Deskto
-- Configuration Files:
/etc/kernel/postinst.d/zz-update-grub changed:
set -e
set -- $DEB_MAINT_PARAMS
mode="${1#\'}"
mode="${mode%\'}"
case $0:$mode in
# Only run on postinst configure and postrm remove, to avoid wasting
# time by calling update-grub multiple times on upgrade and removal.
*/postinst.d/*:configure|*/postrm.d/*:remove)
exec update-grub
;;
esac
exit 0
-- debconf information excluded
More information about the Pkg-grub-devel
mailing list