-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GRUB creates wrong root device #182
Comments
Richard Yao mentioned that it had to do with It has to do with grub2-probe failing silently and that the problem file was /etc/grub.d/10_linux. |
@Ryushin and I did some debugging on his system.
My guess is that he has the latest feature flags on his pool and grub2-probe only reports zfs when it fully understands the disk format, despite it not needing to know anything about the disk format in this situation. |
Updated information on my systems. This is occurring on three systems. All three systems are configured similarly. System has GRUB installed to a mdraid1 device made up of two 16GB USB sticks. GRUB is install in the MBR of both USB sticks. A 1GB partition created on each USB stick that is mirrored using mdraid1. /boot is installed on this partition. System has two pools. rpool and netshares: zfs list: zpool status -v:
errors: No known data errors pool: rpool
|
Something like this could work here:
It can be applied to That said, this is not quite right because there is likely a chance that |
I'm running Debian (Devuan) actually and the patch works great for me. Thanks much. |
The patch really only worked for certain situations. I think a requirement would be to have the zpool bootfs parameter set. I wrote a new patch that works against the current version (2.02~beta2-22+deb8) of grub in Debian Jessie. diff -c /tmp/10_linux.orig /etc/grub.d/10_linux *** 77,85 **** --- 77,96 ---- |
Why is the default behaviour to ignore the bootfs setting? I was experimenting with snapshots and clones (debian zfs initramfs support is nice!), then found that changing bootfs did nothing and that grub scripts always generate the same bootfs= string. |
Same issue on Debian Bullseye. In my case, I overrode |
Running Debian Jessie. GRUB 2.02-beta2.9-ZOL11-7 is installed.
GRUB is creating the root device incorrectly. Running update grub produces the root device as "root=ZFS=/ROOT" instead of the proper root device of "root=ZFS=rpool/ROOT"
The text was updated successfully, but these errors were encountered: