Bug#984426: Confirm Bug#984426

2021-03-05 Thread Dr. Bernd Zimmermann

The last time I just fixed it via the rescue grub-install and did
not made a bug report neither looked up the bug investigating for the reason.
So this second time I looked up wtf could be the reason and
found the missing uuid in the configuration -
well I am not a guru, just a user ;-)

Am 05.03.21 um 12:30 schrieb Colin Watson:

On Fri, Mar 05, 2021 at 08:36:30AM +0100, Dr. Bernd Zimmermann wrote:

I can confirm this bug.
After apt-get upgrade from deb10u3 to deb10u4 and reboot, system boot hangs und 
grub must be
reinstalled via rescue-system.

Seems to be the SAME bug as a during the last failed upgrade a few months ago.


May I ask: if you ran into this a few months ago (implying that the
affected system was misconfigured at that time), how is it that you
didn't fix the configuration at that point?  (I'm genuinely curious
about how people would run into the same class of failure twice on the
same system, since once you've fixed grub-pc/install_devices you should
be good for future upgrades.)





Bug#984426: Possible manual fix with install/configuration issue

2021-03-05 Thread Dr. Bernd Zimmermann

See bug: #966575

It happens during auto-upgrade on systems with more than one disk (here raid1 
/dev/md*)
and due to inconsistent installation information in grub-pc:

root@gkmonitor:~# debconf-show grub-pc | grep /install_devices:
* grub-pc/install_devices: /dev/disk/by-id/ata-ST2000DM001-1ER164_Z4Z3JAP0

with:

root@gkmonitor:~# ls -l /dev/disk/by-id/
insgesamt 0
lrwxrwxrwx 1 root root  9 Mär  5 09:37 ata-ST2000DM001-1ER164_Z4Z3JAP0 -> 
../../sdb
lrwxrwxrwx 1 root root  9 Mär  5 09:37 ata-ST2000DM001-1ER164_Z4Z3JBQN -> 
../../sda
lrwxrwxrwx 1 root root  9 Mär  5 09:37 md-name-gkmonitor:0 -> ../../md0
lrwxrwxrwx 1 root root  9 Mär  5 09:37 md-name-gkmonitor:1 -> ../../md1

So automatic upgrade will do grub-install into /dev/sdb and not /dev/sda.
Booting from /dev/sda via BIOS will result in error.

Fixing it with grub-install /dev/sda.

dpkg-reconfigure grub-pc will give the option to select all disks, resulting in:

root@gkmonitor:~# debconf-show grub-pc | grep /install_devices:
* grub-pc/install_devices: /dev/disk/by-id/ata-ST2000DM001-1ER164_Z4Z3JBQN, 
/dev/disk/by-id/ata-ST2000DM001-1ER164_Z4Z3JAP0

On next upgrade, the grub-install script will hopefully upgrade all disk MBRs

Regards,
Bernd



Bug#984426: Confirm Bug#984426

2021-03-05 Thread Dr. Bernd Zimmermann

Hey,

I can confirm this bug.
After apt-get upgrade from deb10u3 to deb10u4 and reboot, system boot hangs und 
grub must be
reinstalled via rescue-system.

Seems to be the SAME bug as a during the last failed upgrade a few months ago.

Regards,
Bernd