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 won't boot to zfs after system rebuild. #13656

Closed
RyukaZou opened this issue Jul 14, 2022 · 1 comment
Closed

Grub won't boot to zfs after system rebuild. #13656

RyukaZou opened this issue Jul 14, 2022 · 1 comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@RyukaZou
Copy link

RyukaZou commented Jul 14, 2022

System information

Type Version/Name
Distribution Name Gentoo Linux
Distribution Version 17.1
Kernel Version 5.15.52
Architecture X64
OpenZFS Version 2.1.4-r1

Describe the problem you're observing

When installing gentoo with GRUB that has libzfs enable via a chrooted environment and reboot into such works as expected.

If the system is rebuild immediately after set up with emerge -e @world and perform grub-mkconfig -o /boot/grub/grub.cfg then reboot will fail to boot into system.

Describe how to reproduce the problem

  1. Instell gentoo follow Fearedbliss's guide.(https://wiki.gentoo.org/wiki/User:Fearedbliss/Installing_Gentoo_Linux_On_ZFS)
  2. Immediately rebuild system with emerge -e @world after out of chroot and reboot into the installation.
  3. After rebuild is done perfrom grub-mkconfig -o /boot/grub/grub.cfg.

Include any warning/errors/backtraces from the system logs

Message: filesystem 'rpool/' cannot be mounted, unable to open the dataset 

Possible fix solution

zfsonlinux/grub#22 (comment)

https://wiki.archlinux.org/title/Install_Arch_Linux_on_ZFS#bug:_broken_root_pool_detection

@RyukaZou RyukaZou added the Type: Defect Incorrect behavior (e.g. crash, hang) label Jul 14, 2022
@RyukaZou
Copy link
Author

RyukaZou commented Feb 11, 2023

This problem cost by missing hostid, after zgenhostid -o /etc/hostid solved problem. Close issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

1 participant