I am seeing the same problem on non-mirrored root disk, using a simple
LVM volume.

I am currently testing the upgrade from 22.04 to 24.04 using `do-
release-upgrade -p`. For the test I deploy a machine with MAAS
installing Ubuntu 22.04, then trying to upgrade to 24.04. Everything
works except the error from grub-install, since it's trying to install
to the LVM volume instead of the disk where the volume is located.

At this point I can either purge the package grub-pc and then install it
again. A simple `dpkg-reconfigure --force grub-pc` does not work, it
shows all the questions EXCEPT the disk selection dialog. Or I can get
the disk selection dialog back by setting:

```
echo 'grub-pc grub-pc/cloud_style_installation boolean false' | 
debconf-set-selections
```

I also tested running `dpkg-reconfigure grub-pc` before the upgrade and
selected the correct disk. The upgrade afterward fails anyway with the
same error, probably because cloud_style_installation does not get
reset?

Anyway, any idea why the default selection is the LVM volume instead of
the  disk on which the volume resides? Is it cloud-init or MAAS seeding
cloud-init with the wrong value?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060695

Title:
  24.04 grub-pc cannot upgrade on mirrored software RAID root disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/subiquity/+bug/2060695/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to