ubuntu 20.04.1 installed with zfs root fails to boot after installing xen-hypervisor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
After installing 20.04.1 using the ZFS root option I installed Xen. When it rebooted it failed in initramfs with the error "No pool imported". I was able to boot the previous kernel. When I examined the /boot/grub/grub.cfg I found what looked like invalid "root=ZFS=" options like this:
"root=ZFS=
The previous kernel that boots looks like this:
"root=ZFS=
After looking in /etc/default/grub and /etc/grub.d I was unable to figure out why they were different and how I could change it.
As a test saved a copy and edited /boot/grub/grub.cfg adding the rpool to each "root=ZFS=" line where rpool was missing. This time I was able to boot the Xen kernel.
=======
How to reproduce the problem
From scratch install ubuntu 20.04.1 desktop, select ZFS as root option, then install xen-hypervisor-
It will fail to reboot because the grub root=ZFS argument is wrong.
It looks like this is a problem with "grub-mkconfig".