Bug#624263: grub-pc: stuck in grub-mkdevicemap at configure time

April 26th, 2011 - 07:00 pm ET by Yann Dirson | Report spam
Package: grub-pc
Version: 1.99~rc1-13
Severity: serious

[UPGRADE] grub-pc 1.98+20100804-14 -> 1.99~rc1-13

When upgrading, aptitude gets stuck with:

Setting up grub-pc (1.99~rc1-13) ...
Installing new version of config file /etc/grub.d/05_debian_theme ...
Replacing config file /etc/default/grub with new version

$ pstree -alp 6275
grub-pc.postins,6275 /var/lib/dpkg/info/grub-pc.postinst configure 1.98+20100804-14
├─grep,6277 -v ^(fd[0-9]\\+)
└─grub-mkdevicema,6276 -m -

$ ps l 6275 6277 6276
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
1 0 6275 6180 20 0 10884 752 wait S+ pts/5 0:00 /bin/bash /var/lib/dpkg/info/grub-pc.postinst configure 1.98+20100804-14
0 0 6276 6275 20 0 18288 928 blkdev D+ pts/5 0:00 grub-mkdevicemap -m -
0 0 6277 6275 20 0 7592 572 pipe_w S+ pts/5 0:00 grep -v ^(fd[0-9]\+)

$ ps -o pid,wchan=WIDE-WCHAN-COLUMN -o comm 6276
PID WIDE-WCHAN-COLUMN COMMAND
6276 blkdev_get grub-mkdevicema


Nothing suspect from dmesg - any idea how to quickly get more precise
info ? Not sure I can get out of this to retry except by rebooting,
which would be quite a shame...


*********************** BEGIN /proc/mounts
/dev/mapper/home-root / ext3 rw,relatime,errors=remount-ro,barrier=0,data=ordered 0 0
/dev/sda1 /boot ext2 rw,relatime,errors=continue 0 0
/dev/mapper/home-home /home ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0
/dev/mapper/home-tmp /tmp ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0
/dev/mapper/home-usr /usr ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0
/dev/mapper/home-var /var ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0
/dev/mapper/home-work /work ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-ST3500412AS_5VV1SRD9
*********************** 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 lvm
insmod part_msdos
insmod ext2
set root='(home-usr)'
search --no-floppy --fs-uuid --set 0224f60f-7f2b-4de0-863a-f7e8f2fbfeee
if loadfont /share/grub/unicode.pf2 ; then
set gfxmoded0x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod lvm
insmod part_msdos
insmod ext2
set root='(home-usr)'
search --no-floppy --fs-uuid --set 0224f60f-7f2b-4de0-863a-f7e8f2fbfeee
insmod png
if background_image /share/images/desktop-base/spacefun-grub.png; then
set color_normal=light-gray/black
set color_highlight=white/black
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 ###
menuentry 'Debian GNU/Linux, with Linux 2.6.37.2' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906
echo 'Loading Linux 2.6.37.2 ...'
linux /vmlinuz-2.6.37.2 root=/dev/mapper/home-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.37.2
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37.2 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906
echo 'Loading Linux 2.6.37.2 ...'
linux /vmlinuz-2.6.37.2 root=/dev/mapper/home-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.37.2
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37ata' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906
echo 'Loading Linux 2.6.37ata ...'
linux /vmlinuz-2.6.37ata root=/dev/mapper/home-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.37ata
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37ata (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906
echo 'Loading Linux 2.6.37ata ...'
linux /vmlinuz-2.6.37ata root=/dev/mapper/home-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.37ata
}
menuentry 'Debian GNU/Linux, with Linux 2.6.34.1-00003-ge5b0813-dirty' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906
echo 'Loading Linux 2.6.34.1-00003-ge5b0813-dirty ...'
linux /vmlinuz-2.6.34.1-00003-ge5b0813-dirty root=/dev/mapper/home-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.34.1-00003-ge5b0813-dirty
}
menuentry 'Debian GNU/Linux, with Linux 2.6.34.1-00003-ge5b0813-dirty (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906
echo 'Loading Linux 2.6.34.1-00003-ge5b0813-dirty ...'
linux /vmlinuz-2.6.34.1-00003-ge5b0813-dirty root=/dev/mapper/home-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.34.1-00003-ge5b0813-dirty
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32.13-evms' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906
echo 'Loading Linux 2.6.32.13-evms ...'
linux /vmlinuz-2.6.32.13-evms root=/dev/mapper/home-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32.13-evms
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32.13-evms (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906
echo 'Loading Linux 2.6.32.13-evms ...'
linux /vmlinuz-2.6.32.13-evms root=/dev/mapper/home-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32.13-evms
}
### 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)" {
linux16 /memtest86.bin
}
### END /etc/grub.d/20_memtest86 ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906
linux16 /memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906
multiboot /memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set faa4559f-ec7a-4c73-8ce9-0dc55f589906
multiboot /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/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 Apr 23 19:39 ata-IC35L120AVVA07-0_VNC602A6C71W1A -> ../../hda
lrwxrwxrwx 1 root root 10 Apr 23 19:39 ata-IC35L120AVVA07-0_VNC602A6C71W1A-part1 -> ../../hda1
lrwxrwxrwx 1 root root 10 Apr 23 19:39 ata-IC35L120AVVA07-0_VNC602A6C71W1A-part2 -> ../../hda2
lrwxrwxrwx 1 root root 10 Apr 23 19:39 ata-IC35L120AVVA07-0_VNC602A6C71W1A-part3 -> ../../hda3
lrwxrwxrwx 1 root root 9 Apr 23 23:19 ata-LITE-ON_LTR-40125S -> ../../hdb
lrwxrwxrwx 1 root root 9 Apr 23 19:39 ata-ST3500412AS_5VV1SRD9 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 23 19:39 ata-ST3500412AS_5VV1SRD9-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 23 19:39 ata-ST3500412AS_5VV1SRD9-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-name-BigVG-home -> ../../dm-9
lrwxrwxrwx 1 root root 11 Apr 23 19:39 dm-name-BigVG-swap -> ../../dm-12
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-name-BigVG-usr -> ../../dm-7
lrwxrwxrwx 1 root root 11 Apr 23 19:39 dm-name-BigVG-usrlocal -> ../../dm-10
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-name-BigVG-var -> ../../dm-8
lrwxrwxrwx 1 root root 11 Apr 23 19:39 dm-name-BigVG-work -> ../../dm-11
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-name-home-home -> ../../dm-5
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-name-home-root -> ../../dm-0
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-name-home-swap_1 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-name-home-tmp -> ../../dm-4
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-name-home-usr -> ../../dm-1
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-name-home-var -> ../../dm-2
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-name-home-work -> ../../dm-6
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-uuid-LVM-3vmsvCyjqTYFz7fam2RX5WP9UTNQwVAB911uLlUwlpdipNGpDRDfJf88jLT27sss -> ../../dm-2
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-uuid-LVM-3vmsvCyjqTYFz7fam2RX5WP9UTNQwVABYsPYNRGYHcwztMbRDKjvzwyLfTVrcvix -> ../../dm-0
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-uuid-LVM-3vmsvCyjqTYFz7fam2RX5WP9UTNQwVABiwO5ABtYHUMaVkCONwTrm1zmisaqL00b -> ../../dm-4
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-uuid-LVM-3vmsvCyjqTYFz7fam2RX5WP9UTNQwVABm2SvDOE1YXYdgNKoFx3c4INYTblA8H0l -> ../../dm-3
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-uuid-LVM-3vmsvCyjqTYFz7fam2RX5WP9UTNQwVABrCb5QTTfftPO4hAbDRD0nGNu2159Ace0 -> ../../dm-6
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-uuid-LVM-3vmsvCyjqTYFz7fam2RX5WP9UTNQwVABwVj581c1WjAID7MZSqTgL6SvAFZy2DMF -> ../../dm-5
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-uuid-LVM-3vmsvCyjqTYFz7fam2RX5WP9UTNQwVABxJPWm1OkEsQBdFHqRass0A7s3RRcOhd5 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-uuid-LVM-jrfSkJLfeMoga30iBUsz1FDQl6eZo1Lr00000000000000000000000000000000 -> ../../dm-7
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-uuid-LVM-jrfSkJLfeMoga30iBUsz1FDQl6eZo1Lr00000000000000000000000000000001 -> ../../dm-8
lrwxrwxrwx 1 root root 10 Apr 23 19:39 dm-uuid-LVM-jrfSkJLfeMoga30iBUsz1FDQl6eZo1Lr00000000000000000000000000000002 -> ../../dm-9
lrwxrwxrwx 1 root root 11 Apr 23 19:39 dm-uuid-LVM-jrfSkJLfeMoga30iBUsz1FDQl6eZo1Lr00000000000000000000000000000003 -> ../../dm-10
lrwxrwxrwx 1 root root 11 Apr 23 19:39 dm-uuid-LVM-jrfSkJLfeMoga30iBUsz1FDQl6eZo1Lr00000000000000000000000000000004 -> ../../dm-11
lrwxrwxrwx 1 root root 11 Apr 23 19:39 dm-uuid-LVM-jrfSkJLfeMoga30iBUsz1FDQl6eZo1Lr00000000000000000000000000000005 -> ../../dm-12
lrwxrwxrwx 1 root root 9 Apr 23 19:39 scsi-SATA_ST3500412AS_5VV1SRD9 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 23 19:39 scsi-SATA_ST3500412AS_5VV1SRD9-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 23 19:39 scsi-SATA_ST3500412AS_5VV1SRD9-part2 -> ../../sda2
lrwxrwxrwx 1 root root 9 Apr 23 19:39 wwn-0x5000c500242b9e67 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 23 19:39 wwn-0x5000c500242b9e67-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 23 19:39 wwn-0x5000c500242b9e67-part2 -> ../../sda2
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Apr 23 19:39 0224f60f-7f2b-4de0-863a-f7e8f2fbfeee -> ../../dm-1
lrwxrwxrwx 1 root root 10 Apr 23 19:39 082f61ff-5bdb-4e9b-abf0-a9af9fe00b7e -> ../../dm-4
lrwxrwxrwx 1 root root 10 Apr 23 19:39 0d295306-27f2-4e5a-988e-d45754419116 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Apr 23 19:39 182613a0-ce0b-4e00-a31c-e1780b0065c4 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Apr 23 19:39 3047eadc-ec12-499a-bf07-adb7fd488470 -> ../../dm-8
lrwxrwxrwx 1 root root 10 Apr 23 19:39 5c3cb2be-69e9-4a15-adf2-162c54ce5813 -> ../../hda1
lrwxrwxrwx 1 root root 10 Apr 23 19:39 65393b1e-613b-4dcb-888e-ae38d0c3b4a3 -> ../../dm-6
lrwxrwxrwx 1 root root 10 Apr 23 19:39 6e65268e-997d-4e7e-a9b2-aaae0101e97b -> ../../dm-5
lrwxrwxrwx 1 root root 10 Apr 23 19:39 9c463c71-1907-4e87-947b-4d83e566a64c -> ../../dm-7
lrwxrwxrwx 1 root root 10 Apr 23 19:39 b8940725-b71f-4b89-b8f0-f965ba0847d6 -> ../../dm-9
lrwxrwxrwx 1 root root 10 Apr 23 19:39 e9f0b8f2-7e55-44fd-b645-0e39d2873d9c -> ../../dm-3
lrwxrwxrwx 1 root root 10 Apr 23 19:39 faa4559f-ec7a-4c73-8ce9-0dc55f589906 -> ../../sda1
lrwxrwxrwx 1 root root 11 Apr 23 19:39 fd16f273-23c7-462c-b471-783a3fa570ff -> ../../dm-11
*********************** END /dev/disk/by-uuid

Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37.2 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii debconf [debconf-2.0] 1.5.38 Debian configuration management sy
iu grub-common 1.99~rc1-13 GRand Unified Bootloader, version
ii libc6 2.11.2-11 Embedded GNU C Library: Shared lib
ii libdevmapper1.02.1 2:1.02.63-3 The Linux Kernel Device Mapper use
ii ucf 3.0025+nmu1 Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii desktop-base 6.0.6 common files for the Debian Deskto

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



To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 2 repliesReplies Make a reply

Similar topics

Replies

#1 Colin Watson
April 27th, 2011 - 04:40 am ET | Report spam
On Wed, Apr 27, 2011 at 12:52:44AM +0200, Yann Dirson wrote:
[UPGRADE] grub-pc 1.98+20100804-14 -> 1.99~rc1-13

When upgrading, aptitude gets stuck with:

Setting up grub-pc (1.99~rc1-13) ...
Installing new version of config file /etc/grub.d/05_debian_theme ...
Replacing config file /etc/default/grub with new version

$ pstree -alp 6275
grub-pc.postins,6275 /var/lib/dpkg/info/grub-pc.postinst configure 1.98+20100804-14
├─grep,6277 -v ^(fd[0-9]\\+)
└─grub-mkdevicema,6276 -m -

$ ps l 6275 6277 6276
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
1 0 6275 6180 20 0 10884 752 wait S+ pts/5 0:00 /bin/bash /var/lib/dpkg/info/grub-pc.postinst configure 1.98+20100804-14
0 0 6276 6275 20 0 18288 928 blkdev D+ pts/5 0:00 grub-mkdevicemap -m -
0 0 6277 6275 20 0 7592 572 pipe_w S+ pts/5 0:00 grep -v ^(fd[0-9]\+)

$ ps -o pid,wchan=WIDE-WCHAN-COLUMN -o comm 6276
PID WIDE-WCHAN-COLUMN COMMAND
6276 blkdev_get grub-mkdevicema


Nothing suspect from dmesg - any idea how to quickly get more precise
info ? Not sure I can get out of this to retry except by rebooting,
which would be quite a shame...



It may be difficult retrospectively. Can you attach strace to find out
what system call it's stuck in, and attach gdb (you may need to build
grub2 locally for symbols) to get a backtrace?

Colin Watson []



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
#2 Yann Dirson
April 27th, 2011 - 04:20 pm ET | Report spam
On Wed, Apr 27, 2011 at 09:27:25AM +0100, Colin Watson wrote:
On Wed, Apr 27, 2011 at 12:52:44AM +0200, Yann Dirson wrote:
> [UPGRADE] grub-pc 1.98+20100804-14 -> 1.99~rc1-13
>
> When upgrading, aptitude gets stuck with:
>
> Setting up grub-pc (1.99~rc1-13) ...
> Installing new version of config file /etc/grub.d/05_debian_theme ...
> Replacing config file /etc/default/grub with new version
>
> $ pstree -alp 6275
> grub-pc.postins,6275 /var/lib/dpkg/info/grub-pc.postinst configure 1.98+20100804-14
> ├─grep,6277 -v ^(fd[0-9]\\+)
> └─grub-mkdevicema,6276 -m -
>
> $ ps l 6275 6277 6276
> F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
> 1 0 6275 6180 20 0 10884 752 wait S+ pts/5 0:00 /bin/bash /var/lib/dpkg/info/grub-pc.postinst configure 1.98+20100804-14
> 0 0 6276 6275 20 0 18288 928 blkdev D+ pts/5 0:00 grub-mkdevicemap -m -
> 0 0 6277 6275 20 0 7592 572 pipe_w S+ pts/5 0:00 grep -v ^(fd[0-9]\+)
>
> $ ps -o pid,wchan=WIDE-WCHAN-COLUMN -o comm 6276
> PID WIDE-WCHAN-COLUMN COMMAND
> 6276 blkdev_get grub-mkdevicema
>
>
> Nothing suspect from dmesg - any idea how to quickly get more precise
> info ? Not sure I can get out of this to retry except by rebooting,
> which would be quite a shame...

It may be difficult retrospectively. Can you attach strace to find out
what system call it's stuck in, and attach gdb (you may need to build
grub2 locally for symbols) to get a backtrace?



Unfortunately, neither can complete attaching to the process, and I
even have to use kill -9 to get rid of strace and gdb afterwards.
Looks like I'd have to reboot and add the strace call to the postinst
before retrying ?

Bad bad bad :}

Maybe we can get some info from the kernel about the syscall details.
I have a couple of debugging features activated in this kernel (kgdb
notably), I could try to peek via this channel.

Other ideas ?



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search