grub-probe for zfs assumes all devices prefix with /dev, ignoring /dev/disk/...
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub |
Unknown
|
Unknown
|
|||
grub2 (Ubuntu) |
Fix Released
|
Medium
|
Chad Miller | ||
Xenial |
Fix Released
|
Medium
|
Mathieu Trudel-Lapierre | ||
grub2-signed (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Mathieu Trudel-Lapierre | ||
zfs-linux (Ubuntu) |
Fix Released
|
Medium
|
Colin Ian King | ||
Xenial |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
Installs over ZFS where a ZFS disk is expected to be used as a root device.
[Test case]
- Run update-grub on a system with a ZFS root filesystem.
[Regression Potential]
Installs relying on the current broken behavior to avoid listing other operating systems in grub menu may find that new entries are added.
---
update-grub runs /usr/sbin/
Without libzfslinux support compiled in, /usr/sbin/
zpool responds with device names as used at (I think!) pool creation time. Often, this is /dev/disk/by-id/... names, without the path.
grub-probe then parses the output, and takes the names of devices, and if they do not start with a "/", it prepends "/dev/".
It then tests the existence of the path name of the device. it fails.
grub-probe then returns something like
/usr/sbin/
The actual path is of course /dev/disk/
It can prepend smarter than "/dev" or it can understand ZFS natively, to fix the problem.
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in grub2 (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
Changed in zfs-linux (Ubuntu): | |
status: | New → Confirmed |
assignee: | nobody → Chad Miller (cmiller) |
status: | Confirmed → In Progress |
Changed in grub2 (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in zfs-linux (Ubuntu): | |
status: | In Progress → Fix Released |
Bug confirmed here:
https:/ /github. com/zfsonlinux/ grub/issues/ 5
and step 2 of
https:/ /github. com/zfsonlinux/ pkg-zfs/ wiki/HOWTO- install- Ubuntu- 14.04-- -15.04- to-a-Native- ZFS-Root- Filesystem
which advocates some craziness with udev to copy /dev/disk/by-id/ names to /dev/ .