Xen Dom0 linux boot fails with multiple initrd files

Bug #1987567 reported by Mauricio Faria de Oliveira
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Fix Released
Medium
Mauricio Faria de Oliveira
Focal
Triaged
Medium
Mauricio Faria de Oliveira
Jammy
Triaged
Medium
Mauricio Faria de Oliveira
Kinetic
Fix Released
Medium
Mauricio Faria de Oliveira

Bug Description

[Impact]

The linux_xen template seems to be broken for multiple initrd files.

Linux fails to boot when it needs a real initrd but early/microcode
initrd(s) are found by grub-mkconfig.

The 2 patches (merged upstream [2]) allow more than one initrd to be
actually loaded, and the real/non-microcode initrd get used by Linux.

More details in the patchset cover letter [1].

[Test Plan]

    $ sudo apt install microcode-initrd

    $ du --bytes /boot/...
    13660416 /boot/vmlinuz-5.4.0-122-generic
    33062542 /boot/initrd.img-5.4.0-122-generic
    5045248 /boot/microcode.cpio

- Original:

    [ 2.505207] Kernel panic - not syncing: VFS: Unable to mount root
    fs on unknown-block(0,0)

- Patch 1:

    [ 1.890498] Freeing initrd memory: 4928K
    ...
    [ 2.710948] Kernel panic - not syncing: VFS: Unable to mount root
    fs on unknown-block(0,0)

- Patch 2:

    [ 1.968578] Freeing initrd memory: 32288K
    ...
    [ 2.844889] Run /init as init process
    [ 2.916532] systemd-udevd[148]: Starting version 245.4-4ubuntu3.17

[Where problems could occur]

Regressions would be likely to manifest when booting Linux under Xen
with more than one initrd file (changes contained in this code path).

[Other Info]

[1] https://lists.gnu.org/archive/html/grub-devel/2022-08/msg00137.html
[PATCH 0/2] templates/linux_xen: Properly handle multiple initrd files

grub.git commits:
18d8eafdea23 templates/linux_xen: Properly order the multiple initrd files
b4b4acaf4ec7 templates/linux_xen: Properly load multiple initrd files

Related branches

Changed in grub2 (Ubuntu Focal):
status: New → Triaged
assignee: nobody → Mauricio Faria de Oliveira (mfo)
Changed in grub2 (Ubuntu Jammy):
status: New → Triaged
assignee: nobody → Mauricio Faria de Oliveira (mfo)
Changed in grub2 (Ubuntu Kinetic):
status: New → In Progress
assignee: nobody → Mauricio Faria de Oliveira (mfo)
Changed in grub2 (Ubuntu Focal):
importance: Undecided → Medium
Changed in grub2 (Ubuntu Jammy):
importance: Undecided → Medium
Changed in grub2 (Ubuntu Kinetic):
importance: Undecided → Medium
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Merge Request for Kinetic/devel series:
https://code.launchpad.net/~mfo/grub/+git/grub/+merge/428882

description: updated
description: updated
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :
Changed in grub2 (Ubuntu Kinetic):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2 - 2.06-2ubuntu12

---------------
grub2 (2.06-2ubuntu12) kinetic; urgency=medium

  * ubuntu-zfs-enhance-support.patch: Fix missing lines (LP: #1990143)

 -- Julian Andres Klode <email address hidden> Mon, 19 Sep 2022 16:00:47 +0200

Changed in grub2 (Ubuntu Kinetic):
status: Fix Committed → Fix Released
tags: added: foundations-todo
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers