Can't create a bootable disk by doing image creation on a loop device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Triaged
|
Medium
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm trying to create a bootable disk image using an image file mounted as a loop device with partx.
While the grub-install succeeds, when I attempt to boot in KVM or VMware, it fails with the following error:
""""
error: no such device: 92136917-
Entering rescue mode...
grub rescue> _
""""
The grub boot configuration entry my process creates is pretty simple:
"""
menuentry 'Ubuntu LTS (v16.04)' {
search --set=root --no-floppy --fs-uuid 92136917-
loopback loop /images/16.04.img
linux (loop)/vmlinuz root=UUID=
initrd (loop)/initrd.img
}
"""
I think it's because this commit is missing from Ubuntu 16.04's grub2 package: http://
Could this get fixed in some way?
I'm using Ubuntu 16.04.6. The current grub2 package version is "2.02~beta2-
Changed in grub2 (Ubuntu Bionic): | |
status: | New → Fix Released |
Changed in grub2 (Ubuntu): | |
status: | New → Fix Released |
Changed in grub2 (Ubuntu Xenial): | |
status: | New → Triaged |
importance: | Undecided → Medium |
I'll also note that it sometimes works with UEFI, but I've never gotten it to work with BIOS...