Skip to content
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 "root=ZFS=..." misses zpool #3462

Closed
heilts opened this issue May 30, 2015 · 1 comment
Closed

grub "root=ZFS=..." misses zpool #3462

heilts opened this issue May 30, 2015 · 1 comment

Comments

@heilts
Copy link

heilts commented May 30, 2015

Hello,

I use Debian "Jessie" with zfs 0.6.4-1.1-2 and root on zfs. The root pool is "tank0".

After upgrading to grub 2.02-beta2.9-ZOL1, the grub.cfg misses the pool part, i.e. it becomes e.g.
linux /jessie-1/ROOT@/boot/vmlinuz-3.19.8 root=ZFS=jessie-1/ROOT ro boot=zfs $bootfs quiet
This does not work, it should be e.g.
linux /jessie-1/ROOT@/boot/vmlinuz-3.19.8 root=ZFS=tank0/jessie-1/ROOT ro boot=zfs $bootfs quiet

Also, at running "update-grub", I got

root@tor:~# update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.19.8
Found initrd image: /boot/initrd.img-3.19.8
/usr/sbin/grub-probe: error: unknown filesystem.
Found linux image: /boot/vmlinuz-3.19.3
Found initrd image: /boot/initrd.img-3.19.3
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
/usr/sbin/grub-probe: error: unknown filesystem.
Found memtest86+ image: /jessie-1/ROOT@/boot/memtest86+.bin
Found memtest86+ multiboot image: /jessie-1/ROOT@/boot/memtest86+_multiboot.bin
Found Debian GNU/Linux (8.0) on /dev/sdi1
done

However, grub-probe works:
root@tor:~# grub-probe /
zfs

The root filesystem is placed on GPT parted disks (raidz1) partitition 4. The other partititions are used for gtp grub and md1 (carrying an ext4 based rescue system and swap, this is why the update-grub creates so many entries).

I do not know how to track the probelm further.

Best regards
Hinrich

@FransUrbo
Copy link
Contributor

This belongs to the Grub repo (https://github.com/zfsonlinux/grub). Please move it there and close this one.

Could you please (in the new ticket) verify the version of the grub packages?

dpkg -l \*grub\* | grep ^ii

But the fact that you're getting

/usr/sbin/grub-probe: error: unknown filesystem.

indicates that one of the (many!) grub-probe commands is failing. Maybe because you have a mixed system?

@heilts heilts closed this as completed May 31, 2015
kithrup pushed a commit to kithrup/openzfs that referenced this issue Feb 16, 2019
This is result of my project idea at the OpenZFS developer summit's
hackathon session on November 19th, 2013 at San Francisco.

Ticket: openzfs#3462
(cherry picked from commit 13cc5237d6dbed102722cf4d3655783ee7e32fa5)
kithrup pushed a commit to kithrup/openzfs that referenced this issue Mar 3, 2019
This is result of my project idea at the OpenZFS developer summit's
hackathon session on November 19th, 2013 at San Francisco.

Ticket: openzfs#3462
(cherry picked from commit 13cc5237d6dbed102722cf4d3655783ee7e32fa5)
kithrup pushed a commit to kithrup/openzfs that referenced this issue Apr 3, 2020
This is result of my project idea at the OpenZFS developer summit's
hackathon session on November 19th, 2013 at San Francisco.

Ticket: openzfs#3462
(cherry picked from commit 13cc5237d6dbed102722cf4d3655783ee7e32fa5)
kithrup pushed a commit to kithrup/openzfs that referenced this issue Apr 11, 2020
This is result of my project idea at the OpenZFS developer summit's
hackathon session on November 19th, 2013 at San Francisco.

Ticket: openzfs#3462
(cherry picked from commit 13cc5237d6dbed102722cf4d3655783ee7e32fa5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants