[Bug 2119155] Re: grub-pc cannot install on software raid1
Mate Kukri
2119155 at bugs.launchpad.net
Thu Jul 31 09:09:05 UTC 2025
Try
> echo "set grub-pc/cloud_style_installation false" | sudo debconf-communicate
Then do
> sudo dpkg-reconfigure grub-pc
And select /dev/sda and /dev/sdb when asked for disks.
That should fix this issue, but the question is, did this installation
come from a cloud image? Or what media was used to install this? That
first value should only be set on cloud images.
Or if this doesnt fix it, it might be the subiquity, cloud-init issue
you've linked, but I believe that was fixed.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/2119155
Title:
grub-pc cannot install on software raid1
Status in grub2 package in Ubuntu:
New
Bug description:
I'm upgrading Ubuntu 22.04 to 24.04 and suddenly grub-pc fails after
running grub-install. I tried reisntalling it to find more details and
here's the output I've got:
# apt reinstall grub-pc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 137 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://mirror.yandex.ru/ubuntu noble-updates/main amd64 grub-pc amd64 2.12-1ubuntu7.3 [137 kB]
Fetched 137 kB in 0s (1252 kB/s)
Preconfiguring packages ...
(Reading database ... 236663 files and directories currently installed.)
Preparing to unpack .../grub-pc_2.12-1ubuntu7.3_amd64.deb ...
Unpacking grub-pc (2.12-1ubuntu7.3) over (2.12-1ubuntu7.3) ...
Setting up grub-pc (2.12-1ubuntu7.3) ...
grub-pc: Running grub-install ...
Installing for i386-pc platform.
grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: diskfilter writes are not supported.
grub-install failure for /dev/md127
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-71-generic
Found initrd image: /boot/initrd.img-6.8.0-71-generic
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
Processing triggers for man-db (2.12.0-4build2) ...
Please note that Ubuntu 20.04 and 22.04 had no issues with this
software raid, and I've successfully upgraded 20.04 to 22.04 few hours
ago.
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2060695 seems to
be about the same issue, but it says the fix was released, while
crearly it's not fixed yet.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: grub-pc 2.12-1ubuntu7.3
ProcVersionSignature: Ubuntu 5.15.0-151.161-generic 5.15.184
Uname: Linux 5.15.0-151-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
CasperMD5CheckMismatches: ./boot/grub/efi.img
CasperMD5CheckResult: fail
Date: Thu Jul 31 05:45:49 2025
InstallationDate: Installed on 2021-01-21 (1651 days ago)
InstallationMedia: Ubuntu-Server 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: grub2
UpgradeStatus: Upgraded to noble on 2025-07-30 (0 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2119155/+subscriptions
More information about the foundations-bugs
mailing list