Package: grub-pc Version: 2.02+dfsg1-2 Severity: normal Latest update brought this new version of GRUB with it, but when it's running /etc/kernel/postrm.d/zz-update-grub, I get several segfaults. This happened on the update of grub-pc, but it also happened when I removed (some) kernel(s) from my system.
# aptitude purge linux-image-3.16.0-4-amd64 The following packages will be REMOVED: linux-image-3.16.0-4-amd64{p} 0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 163 MB will be freed. Do you want to continue? [Y/n/?] (Reading database ... 442833 files and directories currently installed.) Removing linux-image-3.16.0-4-amd64 (3.16.7-ckt11-1) ... /etc/kernel/postrm.d/initramfs-tools: update-initramfs: Deleting /boot/initrd.img-3.16.0-4-amd64 /etc/kernel/postrm.d/zz-update-grub: Generating grub configuration file ... Segmentation fault Segmentation fault Found background image: /usr/share/images/desktop-base/desktop-grub.png Found linux image: /boot/vmlinuz-4.15.0-1-amd64 Found initrd image: /boot/initrd.img-4.15.0-1-amd64 Segmentation fault Found linux image: /boot/vmlinuz-4.14.0-3-amd64 Found initrd image: /boot/initrd.img-4.14.0-3-amd64 Found linux image: /boot/vmlinuz-4.13.0-1-amd64 Found initrd image: /boot/initrd.img-4.13.0-1-amd64 Found linux image: /boot/vmlinuz-4.9.0-3-amd64 Found initrd image: /boot/initrd.img-4.9.0-3-amd64 Found Microsoft Windows XP Professional on /dev/sdb2 done -- Package-specific info: *********************** BEGIN /proc/mounts /dev/nvme0n1p3 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0 /dev/nvme0n1p2 /boot ext4 rw,relatime,data=ordered 0 0 /dev/sda3 /home ext4 rw,relatime,data=ordered 0 0 /dev/sdb6 /home/diederik/media ext4 rw,relatime,data=ordered 0 0 /dev/md0 /home/diederik/dev ext4 rw,relatime,stripe=256,data=ordered 0 0 *********************** END /proc/mounts *********************** BEGIN /boot/grub/device.map (hd0) /dev/disk/by-id/ata-WDC_WD3000HLFS-01G6U0_WD-WXL908100455 (hd1) /dev/disk/by-id/ata-Maxtor_6L200M0_L408BNRH (hd2) /dev/disk/by-id/usb-Generic_Flash_Disk_CA2FA22A-0:0 *********************** 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_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root a2a5e481-0ac6-4e68-818f-38255bf7dd57 else search --no-floppy --fs-uuid --set=root a2a5e481-0ac6-4e68-818f-38255bf7dd57 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=C 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 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root a2a5e481-0ac6-4e68-818f-38255bf7dd57 else search --no-floppy --fs-uuid --set=root a2a5e481-0ac6-4e68-818f-38255bf7dd57 fi insmod png if background_image /usr/share/desktop-base/softwaves-theme/grub/grub-4x3.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-a2a5e481-0ac6-4e68-818f-38255bf7dd57' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 else search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 fi echo 'Loading Linux 4.15.0-1-amd64 ...' linux /vmlinuz-4.15.0-1-amd64 root=UUID=a2a5e481-0ac6-4e68-818f-38255bf7dd57 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-4.15.0-1-amd64 } submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-a2a5e481-0ac6-4e68-818f-38255bf7dd57' { menuentry 'Debian GNU/Linux, with Linux 4.15.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-1-amd64-advanced-a2a5e481-0ac6-4e68-818f-38255bf7dd57' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 else search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 fi echo 'Loading Linux 4.15.0-1-amd64 ...' linux /vmlinuz-4.15.0-1-amd64 root=UUID=a2a5e481-0ac6-4e68-818f-38255bf7dd57 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-4.15.0-1-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.15.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-1-amd64-recovery-a2a5e481-0ac6-4e68-818f-38255bf7dd57' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 else search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 fi echo 'Loading Linux 4.15.0-1-amd64 ...' linux /vmlinuz-4.15.0-1-amd64 root=UUID=a2a5e481-0ac6-4e68-818f-38255bf7dd57 ro single echo 'Loading initial ramdisk ...' initrd /initrd.img-4.15.0-1-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.14.0-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.0-3-amd64-advanced-a2a5e481-0ac6-4e68-818f-38255bf7dd57' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 else search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 fi echo 'Loading Linux 4.14.0-3-amd64 ...' linux /vmlinuz-4.14.0-3-amd64 root=UUID=a2a5e481-0ac6-4e68-818f-38255bf7dd57 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-4.14.0-3-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.14.0-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.0-3-amd64-recovery-a2a5e481-0ac6-4e68-818f-38255bf7dd57' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 else search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 fi echo 'Loading Linux 4.14.0-3-amd64 ...' linux /vmlinuz-4.14.0-3-amd64 root=UUID=a2a5e481-0ac6-4e68-818f-38255bf7dd57 ro single echo 'Loading initial ramdisk ...' initrd /initrd.img-4.14.0-3-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.13.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-1-amd64-advanced-a2a5e481-0ac6-4e68-818f-38255bf7dd57' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 else search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 fi echo 'Loading Linux 4.13.0-1-amd64 ...' linux /vmlinuz-4.13.0-1-amd64 root=UUID=a2a5e481-0ac6-4e68-818f-38255bf7dd57 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-4.13.0-1-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.13.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-1-amd64-recovery-a2a5e481-0ac6-4e68-818f-38255bf7dd57' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 else search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 fi echo 'Loading Linux 4.13.0-1-amd64 ...' linux /vmlinuz-4.13.0-1-amd64 root=UUID=a2a5e481-0ac6-4e68-818f-38255bf7dd57 ro single echo 'Loading initial ramdisk ...' initrd /initrd.img-4.13.0-1-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.9.0-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-3-amd64-advanced-a2a5e481-0ac6-4e68-818f-38255bf7dd57' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 else search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 fi echo 'Loading Linux 4.9.0-3-amd64 ...' linux /vmlinuz-4.9.0-3-amd64 root=UUID=a2a5e481-0ac6-4e68-818f-38255bf7dd57 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-4.9.0-3-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.9.0-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-3-amd64-recovery-a2a5e481-0ac6-4e68-818f-38255bf7dd57' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 else search --no-floppy --fs-uuid --set=root 0d4173d9-2331-4f15-bbf8-ba3894700221 fi echo 'Loading Linux 4.9.0-3-amd64 ...' linux /vmlinuz-4.9.0-3-amd64 root=UUID=a2a5e481-0ac6-4e68-818f-38255bf7dd57 ro single echo 'Loading initial ramdisk ...' initrd /initrd.img-4.9.0-3-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 ### menuentry 'Microsoft Windows XP Professional (on /dev/sdb2)' --class windows --class os $menuentry_id_option 'osprober-chain-04C435F2C435E718' { insmod part_msdos insmod ntfs set root='hd0,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 --hint='hd0,msdos2' 04C435F2C435E718 else search --no-floppy --fs-uuid --set=root 04C435F2C435E718 fi parttool ${root} hidden- drivemap -s (hd0) ${root} 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 ### *********************** END /boot/grub/grub.cfg *********************** BEGIN /proc/mdstat Personalities : [raid10] [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] md0 : active raid10 sdd1[0] sdc1[1] 312438784 blocks super 1.2 512K chunks 2 far-copies [2/2] [UU] bitmap: 0/3 pages [0KB], 65536KB chunk unused devices: <none> *********************** END /proc/mdstat *********************** BEGIN LVM *********************** END LVM *********************** BEGIN /dev/disk/by-id total 0 lrwxrwxrwx 1 root root 9 Feb 28 12:15 ata-HL-DT-ST_BD-RE_BH16NS40_K92E8CJ3245 -> ../../sr0 lrwxrwxrwx 1 root root 9 Feb 28 12:15 ata-ST3320620AS_6QF10JPP -> ../../sdd lrwxrwxrwx 1 root root 10 Feb 28 12:15 ata-ST3320620AS_6QF10JPP-part1 -> ../../sdd1 lrwxrwxrwx 1 root root 9 Feb 28 12:15 ata-ST3320620AS_9QF1KQ2K -> ../../sdc lrwxrwxrwx 1 root root 10 Feb 28 12:15 ata-ST3320620AS_9QF1KQ2K-part1 -> ../../sdc1 lrwxrwxrwx 1 root root 9 Feb 28 12:15 ata-Samsung_SSD_750_EVO_250GB_S2SHNWAH533455F -> ../../sda lrwxrwxrwx 1 root root 10 Feb 28 12:15 ata-Samsung_SSD_750_EVO_250GB_S2SHNWAH533455F-part3 -> ../../sda3 lrwxrwxrwx 1 root root 9 Feb 28 17:00 ata-WDC_WD3000HLFS-01G6U0_WD-WXL908100455 -> ../../sdb lrwxrwxrwx 1 root root 10 Feb 28 17:00 ata-WDC_WD3000HLFS-01G6U0_WD-WXL908100455-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 10 Feb 28 17:00 ata-WDC_WD3000HLFS-01G6U0_WD-WXL908100455-part4 -> ../../sdb4 lrwxrwxrwx 1 root root 10 Feb 28 17:00 ata-WDC_WD3000HLFS-01G6U0_WD-WXL908100455-part5 -> ../../sdb5 lrwxrwxrwx 1 root root 10 Feb 28 17:00 ata-WDC_WD3000HLFS-01G6U0_WD-WXL908100455-part6 -> ../../sdb6 lrwxrwxrwx 1 root root 9 Feb 28 12:15 md-name-bagend:0 -> ../../md0 lrwxrwxrwx 1 root root 9 Feb 28 12:15 md-uuid-b98045a3:0ac83bf4:eae02c31:cf1ceb02 -> ../../md0 lrwxrwxrwx 1 root root 13 Feb 28 12:15 nvme-Samsung_SSD_960_PRO_1TB_S3EVNWAJ311493R -> ../../nvme0n1 lrwxrwxrwx 1 root root 15 Feb 28 12:15 nvme-Samsung_SSD_960_PRO_1TB_S3EVNWAJ311493R-part1 -> ../../nvme0n1p1 lrwxrwxrwx 1 root root 15 Feb 28 12:15 nvme-Samsung_SSD_960_PRO_1TB_S3EVNWAJ311493R-part2 -> ../../nvme0n1p2 lrwxrwxrwx 1 root root 15 Feb 28 12:15 nvme-Samsung_SSD_960_PRO_1TB_S3EVNWAJ311493R-part3 -> ../../nvme0n1p3 lrwxrwxrwx 1 root root 13 Feb 28 12:15 nvme-eui.002538537150590f -> ../../nvme0n1 lrwxrwxrwx 1 root root 15 Feb 28 12:15 nvme-eui.002538537150590f-part1 -> ../../nvme0n1p1 lrwxrwxrwx 1 root root 15 Feb 28 12:15 nvme-eui.002538537150590f-part2 -> ../../nvme0n1p2 lrwxrwxrwx 1 root root 15 Feb 28 12:15 nvme-eui.002538537150590f-part3 -> ../../nvme0n1p3 lrwxrwxrwx 1 root root 9 Feb 28 17:00 wwn-0x50014ee0ab945736 -> ../../sdb lrwxrwxrwx 1 root root 10 Feb 28 17:00 wwn-0x50014ee0ab945736-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 10 Feb 28 17:00 wwn-0x50014ee0ab945736-part4 -> ../../sdb4 lrwxrwxrwx 1 root root 10 Feb 28 17:00 wwn-0x50014ee0ab945736-part5 -> ../../sdb5 lrwxrwxrwx 1 root root 10 Feb 28 17:00 wwn-0x50014ee0ab945736-part6 -> ../../sdb6 lrwxrwxrwx 1 root root 9 Feb 28 12:15 wwn-0x5002538d701ecaa2 -> ../../sda lrwxrwxrwx 1 root root 10 Feb 28 12:15 wwn-0x5002538d701ecaa2-part3 -> ../../sda3 *********************** END /dev/disk/by-id *********************** BEGIN /dev/disk/by-uuid total 0 lrwxrwxrwx 1 root root 10 Feb 28 17:00 04C435F2C435E718 -> ../../sdb2 lrwxrwxrwx 1 root root 15 Feb 28 12:15 0d4173d9-2331-4f15-bbf8-ba3894700221 -> ../../nvme0n1p2 lrwxrwxrwx 1 root root 10 Feb 28 12:15 3083bc70-378d-4e94-b9c8-28f9b1dc1ef2 -> ../../sda3 lrwxrwxrwx 1 root root 10 Feb 28 17:00 46c39419-874e-450c-9905-2e912eb8b61f -> ../../sdb5 lrwxrwxrwx 1 root root 10 Feb 28 17:00 6b428f6e-db49-4511-b5dd-dacf6fc76284 -> ../../sdb6 lrwxrwxrwx 1 root root 15 Feb 28 12:15 a2a5e481-0ac6-4e68-818f-38255bf7dd57 -> ../../nvme0n1p3 lrwxrwxrwx 1 root root 9 Feb 28 12:15 a8d3a7ef-a458-436e-9b22-f2efe012a022 -> ../../md0 *********************** END /dev/disk/by-uuid -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (101, 'experimental'), (1, 'experimental-debug') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.15.0-1-amd64 (SMP w/16 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages grub-pc depends on: ii debconf [debconf-2.0] 1.5.66 ii grub-common 2.02+dfsg1-2 ii grub-pc-bin 2.02+dfsg1-2 ii grub2-common 2.02+dfsg1-2 ii ucf 3.0038 grub-pc recommends no packages. grub-pc suggests no packages. -- debconf information: grub-pc/timeout: 5 grub-pc/disk_description: grub-pc/postrm_purge_boot_grub: false grub2/device_map_regenerated: grub-pc/mixed_legacy_and_grub2: true grub-pc/install_devices_disks_changed: grub2/update_nvram: true grub-pc/chainload_from_menu.lst: true * grub-pc/install_devices: /dev/disk/by-id/ata-WDC_WD3000HLFS-01G6U0_WD-WXL908100455 grub-pc/install_devices_failed_upgrade: true grub-pc/kopt_extracted: false * grub2/linux_cmdline: grub2/force_efi_extra_removable: false grub-pc/partition_description: * grub2/linux_cmdline_default: quiet grub-pc/install_devices_failed: false grub-pc/hidden_timeout: false grub2/kfreebsd_cmdline_default: quiet grub2/kfreebsd_cmdline: grub-pc/install_devices_empty: false