Your message dated Sun, 7 Feb 2021 11:16:06 +0000 with message-id <[email protected]> and subject line Re: Bug#982182: grub-pc: Regression on buster 10.8 release with non-interactive update has caused the Debian Bug report #982182, regarding grub-pc: Regression on buster 10.8 release with non-interactive update to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 982182: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=982182 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: grub-pc Version: 2.02+dfsg1-20+deb10u3 Severity: important Dear Maintainer, I was running a non-interactive (DEBIAN_FRONTEND=noninteractive) upgrade to buster release 10.8 which caused grub-pc to break: # apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Setting up grub-pc (2.02+dfsg1-20+deb10u3) ... You must correct your GRUB install devices before proceeding: dpkg-reconfigure grub-pc dpkg: error processing package grub-pc (--configure): installed grub-pc package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: grub-pc E: Sub-process /usr/bin/dpkg returned an error code (1) Running it interactively, grub asks me where to install to and the error goes away, however, this is likely infeasible on 3000+ machines. In case it helps - I have added the `-x` switch to /var/lib/fpkg/info/grub-pc.postinst and captured the output. Pleae advise if adding it here may help. Do you have any idea how to make this upgrade "automatic" again? cheers Carsten -- Package-specific info: *********************** BEGIN /proc/mounts /dev/sdb4 / xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/sdb3 /tmp xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/sdb2 /var xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/sda2 /local xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/md0 /boot xfs rw,relatime,attr2,inode64,noquota 0 0 *********************** END /proc/mounts *********************** BEGIN /boot/grub/device.map (hd0) /dev/disk/by-id/ata-HUS726020ALA610_K5G7J7MA (hd1) /dev/disk/by-id/ata-SAMSUNG_MZ7KM480HAHP-00005_S2HSNX0H800834 *********************** 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 } terminal_input console terminal_output console 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 ### set menu_color_normal=cyan/blue set menu_color_highlight=white/blue ### 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-e3a6bcd5-4740-4015-ab47-5e9548eb04c5' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod part_gpt insmod diskfilter insmod mdraid1x insmod xfs set root='mduuid/917e5401a756b07963624c430fd7cee7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='mduuid/917e5401a756b07963624c430fd7cee7' 1982586d-c831-4148-9a05-42fc4e3f676b else search --no-floppy --fs-uuid --set=root 1982586d-c831-4148-9a05-42fc4e3f676b fi echo 'Loading Linux 4.19.0-14-amd64 ...' linux /vmlinuz-4.19.0-14-amd64 root=UUID=e3a6bcd5-4740-4015-ab47-5e9548eb04c5 ro mitigations=off cgroup_enable=memory consoleblank=0 swapaccount=1 mitigations=off echo 'Loading initial ramdisk ...' initrd /initrd.img-4.19.0-14-amd64 } submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-e3a6bcd5-4740-4015-ab47-5e9548eb04c5' { menuentry 'Debian GNU/Linux, with Linux 4.19.0-14-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-14-amd64-advanced-e3a6bcd5-4740-4015-ab47-5e9548eb04c5' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod part_gpt insmod diskfilter insmod mdraid1x insmod xfs set root='mduuid/917e5401a756b07963624c430fd7cee7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='mduuid/917e5401a756b07963624c430fd7cee7' 1982586d-c831-4148-9a05-42fc4e3f676b else search --no-floppy --fs-uuid --set=root 1982586d-c831-4148-9a05-42fc4e3f676b fi echo 'Loading Linux 4.19.0-14-amd64 ...' linux /vmlinuz-4.19.0-14-amd64 root=UUID=e3a6bcd5-4740-4015-ab47-5e9548eb04c5 ro mitigations=off cgroup_enable=memory consoleblank=0 swapaccount=1 mitigations=off echo 'Loading initial ramdisk ...' initrd /initrd.img-4.19.0-14-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.19.0-14-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-14-amd64-recovery-e3a6bcd5-4740-4015-ab47-5e9548eb04c5' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod part_gpt insmod diskfilter insmod mdraid1x insmod xfs set root='mduuid/917e5401a756b07963624c430fd7cee7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='mduuid/917e5401a756b07963624c430fd7cee7' 1982586d-c831-4148-9a05-42fc4e3f676b else search --no-floppy --fs-uuid --set=root 1982586d-c831-4148-9a05-42fc4e3f676b fi echo 'Loading Linux 4.19.0-14-amd64 ...' linux /vmlinuz-4.19.0-14-amd64 root=UUID=e3a6bcd5-4740-4015-ab47-5e9548eb04c5 ro single mitigations=off echo 'Loading initial ramdisk ...' initrd /initrd.img-4.19.0-14-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.19.0-13-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-13-amd64-advanced-e3a6bcd5-4740-4015-ab47-5e9548eb04c5' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod part_gpt insmod diskfilter insmod mdraid1x insmod xfs set root='mduuid/917e5401a756b07963624c430fd7cee7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='mduuid/917e5401a756b07963624c430fd7cee7' 1982586d-c831-4148-9a05-42fc4e3f676b else search --no-floppy --fs-uuid --set=root 1982586d-c831-4148-9a05-42fc4e3f676b fi echo 'Loading Linux 4.19.0-13-amd64 ...' linux /vmlinuz-4.19.0-13-amd64 root=UUID=e3a6bcd5-4740-4015-ab47-5e9548eb04c5 ro mitigations=off cgroup_enable=memory consoleblank=0 swapaccount=1 mitigations=off echo 'Loading initial ramdisk ...' initrd /initrd.img-4.19.0-13-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.19.0-13-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-13-amd64-recovery-e3a6bcd5-4740-4015-ab47-5e9548eb04c5' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod part_gpt insmod diskfilter insmod mdraid1x insmod xfs set root='mduuid/917e5401a756b07963624c430fd7cee7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='mduuid/917e5401a756b07963624c430fd7cee7' 1982586d-c831-4148-9a05-42fc4e3f676b else search --no-floppy --fs-uuid --set=root 1982586d-c831-4148-9a05-42fc4e3f676b fi echo 'Loading Linux 4.19.0-13-amd64 ...' linux /vmlinuz-4.19.0-13-amd64 root=UUID=e3a6bcd5-4740-4015-ab47-5e9548eb04c5 ro single mitigations=off echo 'Loading initial ramdisk ...' initrd /initrd.img-4.19.0-13-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/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 : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] md0 : active raid1 sda1[0] sdb1[1] 510976 blocks super 1.2 [2/2] [UU] unused devices: <none> *********************** END /proc/mdstat *********************** BEGIN /dev/disk/by-id total 0 lrwxrwxrwx 1 root root 9 Jan 16 07:28 ata-HUS726020ALA610_K5G7J7MA -> ../../sda lrwxrwxrwx 1 root root 10 Jan 16 07:28 ata-HUS726020ALA610_K5G7J7MA-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jan 16 07:28 ata-HUS726020ALA610_K5G7J7MA-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Jan 16 07:28 ata-HUS726020ALA610_K5G7J7MA-part3 -> ../../sda3 lrwxrwxrwx 1 root root 9 Jan 16 07:28 ata-SAMSUNG_MZ7KM480HAHP-00005_S2HSNX0H800834 -> ../../sdb lrwxrwxrwx 1 root root 10 Jan 16 07:28 ata-SAMSUNG_MZ7KM480HAHP-00005_S2HSNX0H800834-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Jan 16 07:28 ata-SAMSUNG_MZ7KM480HAHP-00005_S2HSNX0H800834-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 10 Jan 16 07:28 ata-SAMSUNG_MZ7KM480HAHP-00005_S2HSNX0H800834-part3 -> ../../sdb3 lrwxrwxrwx 1 root root 10 Jan 16 07:28 ata-SAMSUNG_MZ7KM480HAHP-00005_S2HSNX0H800834-part4 -> ../../sdb4 lrwxrwxrwx 1 root root 10 Jan 16 07:28 ata-SAMSUNG_MZ7KM480HAHP-00005_S2HSNX0H800834-part5 -> ../../sdb5 lrwxrwxrwx 1 root root 9 Jan 16 07:28 md-name-a0103:0 -> ../../md0 lrwxrwxrwx 1 root root 9 Jan 16 07:28 md-uuid-917e5401:a756b079:63624c43:0fd7cee7 -> ../../md0 lrwxrwxrwx 1 root root 9 Jan 16 07:28 wwn-0x5000cca25ec36b95 -> ../../sda lrwxrwxrwx 1 root root 10 Jan 16 07:28 wwn-0x5000cca25ec36b95-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jan 16 07:28 wwn-0x5000cca25ec36b95-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Jan 16 07:28 wwn-0x5000cca25ec36b95-part3 -> ../../sda3 lrwxrwxrwx 1 root root 9 Jan 16 07:28 wwn-0x5002538c403a4945 -> ../../sdb lrwxrwxrwx 1 root root 10 Jan 16 07:28 wwn-0x5002538c403a4945-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Jan 16 07:28 wwn-0x5002538c403a4945-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 10 Jan 16 07:28 wwn-0x5002538c403a4945-part3 -> ../../sdb3 lrwxrwxrwx 1 root root 10 Jan 16 07:28 wwn-0x5002538c403a4945-part4 -> ../../sdb4 lrwxrwxrwx 1 root root 10 Jan 16 07:28 wwn-0x5002538c403a4945-part5 -> ../../sdb5 *********************** END /dev/disk/by-id *********************** BEGIN /dev/disk/by-uuid total 0 lrwxrwxrwx 1 root root 10 Jan 16 07:28 0ea3dfb3-6c9d-4083-a70c-b7131f92caa9 -> ../../sdb2 lrwxrwxrwx 1 root root 9 Jan 16 07:28 1982586d-c831-4148-9a05-42fc4e3f676b -> ../../md0 lrwxrwxrwx 1 root root 10 Jan 16 07:28 45546d55-0aaf-43f9-92b1-a0a5ed3af896 -> ../../sda2 lrwxrwxrwx 1 root root 10 Jan 16 07:28 e3a6bcd5-4740-4015-ab47-5e9548eb04c5 -> ../../sdb4 lrwxrwxrwx 1 root root 10 Jan 16 07:28 e68d5d7b-437d-436f-b4aa-15d2269a5ed3 -> ../../sdb3 *********************** END /dev/disk/by-uuid -- System Information: Debian Release: 10.8 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-13-amd64 (SMP w/28 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/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.71 ii grub-common 2.02+dfsg1-20+deb10u3 ii grub-pc-bin 2.02+dfsg1-20+deb10u3 ii grub2-common 2.02+dfsg1-20+deb10u3 ii ucf 3.0038+nmu1 grub-pc recommends no packages. grub-pc suggests no packages. -- debconf information: grub-pc/install_devices: grub-pc/hidden_timeout: false grub-pc/install_devices_empty: false grub2/kfreebsd_cmdline: grub-pc/install_devices_disks_changed: grub-pc/install_devices_failed: false grub-pc/install_devices_failed_upgrade: true grub-pc/mixed_legacy_and_grub2: true grub2/update_nvram: true grub2/kfreebsd_cmdline_default: quiet grub-pc/chainload_from_menu.lst: true grub-pc/timeout: 5 grub2/linux_cmdline: mitigations=off grub-pc/kopt_extracted: false grub-pc/partition_description: grub-pc/disk_description: grub2/linux_cmdline_default: cgroup_enable=memory consoleblank=0 swapaccount=1 mitigations=off grub2/force_efi_extra_removable: false grub-pc/postrm_purge_boot_grub: false
--- End Message ---
--- Begin Message ---On Sun, Feb 07, 2021 at 09:29:15AM +0000, Carsten Aulbert wrote: > I was running a non-interactive (DEBIAN_FRONTEND=noninteractive) > upgrade to buster release 10.8 which caused grub-pc to break: > > # apt-get upgrade > Reading package lists... Done > Building dependency tree > Reading state information... Done > Calculating upgrade... Done > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > 1 not fully installed or removed. > After this operation, 0 B of additional disk space will be used. > Do you want to continue? [Y/n] > Setting up grub-pc (2.02+dfsg1-20+deb10u3) ... > You must correct your GRUB install devices before proceeding: > > dpkg-reconfigure grub-pc > dpkg: error processing package grub-pc (--configure): > installed grub-pc package post-installation script subprocess returned error > exit status 1 > Errors were encountered while processing: > grub-pc > E: Sub-process /usr/bin/dpkg returned an error code (1) Sacrificing noninteractivity in this case was intentional: the eventual consequences of this particular configuration being wrong can often be an unbootable system, due to the GRUB core image and modules getting out of sync. It's better to refuse the upgrade and make people sort it out while they can do so reasonably conveniently, rather than having to rescue an unbootable system (or a fleet of such systems!) manually. > Do you have any idea how to make this upgrade "automatic" again? The grub-pc/install_devices question in debconf should be set to the correct GRUB install device or devices for the machine, typically the primary non-removable disk or disks. The format is a space-separated list of device names, normally stored as the appropriate device under /dev/disk/by-id/ to ensure that the naming is robust against whatever order udev decides to iterate devices in at boot time. For example, on one of my machines I have (according to "debconf-show grub-pc"): grub-pc/install_devices: /dev/disk/by-id/ata-Samsung_SSD_860_EVO_2TB_S4X1NE0MA02694D If I wanted to set this noninteractively, I might use: echo 'grub-pc grub-pc/install_devices multiselect /dev/disk/by-id/ata-Samsung_SSD_860_EVO_2TB_S4X1NE0MA02694D' | sudo debconf-set-selections This is normally set correctly during initial installation, but if you've swapped disks then it may have ended up wrong, or if you have a custom installation procedure of some kind then it may need to be fixed. -- Colin Watson (he/him) [[email protected]]
--- End Message ---

