#14984·zfs

Duplicate root=ZFS in grub.cfg

Author: paulb-smartitCreated Jun 16, 2023Updated Sep 27, 2026
LabelsType: Defect

System information

Type Version/Name
Distribution Name debian
Distribution Version 11
Kernel Version 5.10.0-23
Architecture amd64
OpenZFS Version zfs-2.0.3-9+deb11u1

Describe the problem you're observing

When booting, we fail with panics regarding the mounts not being available for root.

Not able to get logs as there is no mount to write the logs to at this point.

Describe how to reproduce the problem

Following the installation guidance, we encountered an anomaly that meant our system does not show uuid's for disks in /dev/disk/by-uuid and had to use the nvme names /dev/nvme0n1, /dev/nvme1n1 etc.

This seems to have resulted in the update-grub creating a grub.cfg with a duplicate root entry:

linux   /BOOT/debian@/vmlinuz-5.10.0-23-amd64 root=ZFS=/ROOT/debian ro root=ZFS=rpool/ROOT/debian 

When we remove the offending root=ZFS=/ROOT/debian, or modify it to include rpool, the system boots successfully.

It looks like /etc/grub.d/10_linux is generating an empty response for $rpool (line 91) and then adding the reference to root=ZFS=/ROOT/debian without the rpool.

This means that we must remain vigilant at the point an update-grub is carried out.

Include any warning/errors/backtraces from the system logs