-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
update-grub doesn't include pool in root=ZFS=<pool>/root #9562
Comments
Did you look into how the proxmox installer handles this? Did you try this fix: I think this is user error, the above problem has already been accounted for in step 5.3 and this user did not follow the guide. His commands in NO WAY follow the steps from 2a and 3 of the guide. The error gets thrown executing commands that are not a part of the setup proces from the guide. 5.3 also includes a fix for zfsonlinux/grub#22 (comment) |
Hi, No, I did not look into how Proxmox handles this, since I don't use nor have Proxmox. The comment you point to zfsonlinux/grub#22 (comment) also solves this issue, but I consider this to be a workaround at best, not a solution. Indeed, I did not follow the guide to the letter, since the guide does not describe the solution I want to achieve. So I cherry-picked the parts that were relevant for my situation, and that didn't work. So I figured out what I thought was the root cause, and reported it here to help other people with the same problem. I'm sorry I've invested my time to write up this issue. |
The proxmox thing was my first guess, because proxmox already did what you tried to do. Distro's are not that different in the end. "The comment you point to zfsonlinux/grub#22 (comment) also solves this issue, but I consider this to be a workaround at best, not a solution." "Indeed, I did not follow the guide to the letter, since the guide does not describe the solution I want to achieve" But i'm glad it solved your issue. |
@kpande I never wanted to state the underlaying issue is fixed, I reread my own words and It might come sound that way. I edited the previous comment to make that a little more clear, thanks for noticing. This issue was primarily about the fix not being documented and seemed to blame the guide. With I was only trying to be helpfull here and actually did do the required research. I like to sincerely request you stop your repeated agressive attitude towards me from now on. |
Hi,
First of all, thank you for making ZFS available on Linux. I really appreciate all the time and effort you all are putting into it.
I've been trying to set up Debian Buster to have its root filesystem on ZFS (/boot still regular ext2), but ran into problems regarding GRUB: the generated
grub.cfg
is missing the pool-name:instead of the expected
There are lots of similar open issues, but I haven't found any that actually solves the root cause:
System information
Steps to reproduce
The GRUB config file is created by scripts in
/etc/grub.d
, in particular10_linux
. Relevant code is in lines 81-85:The issue is triggered in the first line above.
I've created the Root ZFS pool by following the Wiki step 2a and 3, slightly modified for my disk layout:
The problem seem to be that GRUB doesn't support
feature@large_dnode
(and thus the-O dnodesize=auto
). If I change thezpool create
to include-o feature@large_dnode=disabled
and omit the-O dnodesize=auto
, GRUB keeps recognizing the ZFS label, and everything works as expected.I know that other issues have been closed and moved to the grub-repo, but since the source of the issue seems to be the instructions in the Wiki, I opened this issue on this repo anyway. I have no idea why the wiki suggests the
dnodesize=auto
option, but if it's not critical that it is set, I'd suggest changing the Wiki instructions to remain GRUB-compatible. Or at least add a warning that this particular feature breaks GRUB (at least the current version)The text was updated successfully, but these errors were encountered: