24.04 grub-pc fails on dpkg-reconfigure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello!
I am trying to provision a baremetall node using ubuntu24.04 and use curtin to configure it. I have a well tested configuration file which was used with curtin-21.3 and ubuntu20.04. However it doesn't work when I try it on ubuntu24.04. It fails on dpkg-reconfigure grub-pc step. There is software raid 1 configured and lvm root volume on it, here is curtin configuration file:
```
storage:
version: 1
config:
- id: system_disk0
type: disk
ptable: msdos
model: KXG60ZNV256G TOSHIBA
serial: 31RY10AQYRU1
grub_device: 1
wipe: superblock
- id: system_disk0_part_1
type: partition
offset: 4194304B
size: 256056320000B
device: system_disk0
flag: bios_grub
wipe: superblock
- id: system_disk1
type: disk
ptable: msdos
model: KXG60ZNV256G TOSHIBA
serial: 31RY10AVYRU1
grub_device: 1
wipe: superblock
- id: system_disk1_part_1
type: partition
offset: 4194304B
size: 256056320000B
device: system_disk1
flag: bios_grub
wipe: superblock
- id: mddevice
name: md0
type: raid
raidlevel: 1
devices:
- system_disk0_part_1
- system_disk1_part_1
- id: lvm_volume_group
type: lvm_volgroup
name: system
devices:
- mddevice
- id: lvm_logical_
type: lvm_partition
name: lv_root
volgroup: lvm_volume_group
- id: lvm_root_format
type: format
fstype: ext4
volume: lvm_logical_
- id: lvm_root_mount
type: mount
path: /
device: lvm_root_format
```
So it configures successfully raid and lvm volumes. But then fails on dpkg-reconfigure grub-pc (see attached log file).
The problem can be reproduced manually, so I can mount, chroot and then run:
```
$ debconf-show grub-pc
grub-
grub-
grub-
grub2/
grub2/
grub-pc/timeout: 0
grub2/
* grub-efi/
grub2/
grub-
grub-
grub2/
grub-
grub2/
grub-
grub-
grub2/
* grub-pc/
grub-
grub-
grub-
grub2/
* install_devices:
grub-
grub-
grub-
* grub-pc/
grub-
* grub-pc/
grub2/
$ dpkg-reconfigure grub-pc
Installing for i386-pc platform.
File descriptor 3 (pipe:[263483]) leaked on vgs invocation. Parent PID 55120: grub-install
File descriptor 3 (pipe:[263483]) leaked on vgs invocation. Parent PID 55120: grub-install
File descriptor 3 (pipe:[263483]) leaked on vgs invocation. Parent PID 55120: grub-install
File descriptor 3 (pipe:[263483]) leaked on vgs invocation. Parent PID 55120: grub-install
File descriptor 3 (pipe:[263483]) leaked on vgs invocation. Parent PID 55120: grub-install
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: will not proceed with blocklists.
```
install_devices looks correct and symlinks point to real nvme6n1 and nvme7n1 devices (not partitions). If I set `cloud_
---
ProblemType: Bug
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
CloudArchitecture: x86_64
CloudBuildName: server
CloudID: none
CloudName: none
CloudPlatform: none
CloudSerial: 20240702
CloudSubPlatform: config
DistroRelease: Ubuntu 24.04
NonfreeKernelMo
Package: grub-pc 2.12-1ubuntu7
PackageArchitec
ProcVersionSign
Tags: cloud-image noble
Uname: Linux 6.8.0-36-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Bug reporting is about finding & fixing problems thus preventing future users from hitting the same bug.
I suspect a Support site would be more appropriate, eg. https:/ /answers. launchpad. net/ubuntu. You can also find help with your problem in the support forum of your local Ubuntu community http:// loco.ubuntu. com/ or asking at https:/ /askubuntu. com or https:/ /ubuntuforums. org, or for more support options please look at https:/ /discourse. ubuntu. com/t/community -support/ 709
Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 2076329
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https:/ /wiki.ubuntu. com/ReportingBu gs.