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

Dracut Error Message at Boot about hostid doesn't prevent boot up #106

Open
michaelmrose opened this issue May 19, 2021 · 2 comments
Open

Dracut Error Message at Boot about hostid doesn't prevent boot up #106

michaelmrose opened this issue May 19, 2021 · 2 comments
Assignees

Comments

Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
@michaelmrose
Copy link

@michaelmrose michaelmrose commented May 19, 2021

[ 0.513135] dracut Warning: ZFS: No hostid found on kernel command line or /etc/hostid.
[ 0.513205] dracut Warning: ZFS: Pools may not import correctly.

Looking at https://fossies.org/linux/zfs/contrib/dracut/90zfs/parse-zfs.sh.in

It looks like it does something like this

 /lib/dracut-lib.sh
    4 
    5 # Let the command line override our host id.
    6 spl_hostid=$(getarg spl_hostid=)
    7 if [ -n "${spl_hostid}" ] ; then
    8     info "ZFS: Using hostid from command line: ${spl_hostid}"
    9     zgenhostid -f "${spl_hostid}"
   10 elif [ -f "/etc/hostid" ] ; then
   11     info "ZFS: Using hostid from /etc/hostid: $(hostid)"
   12 else
   13     warn "ZFS: No hostid found on kernel command line or /etc/hostid."
   14     warn "ZFS: Pools may not import correctly."
   15 fi

I would imagine /etc/hostid which does exist wouldn't be available before pools are imported so it would have to be provided by the kerenl command line I think?

@michaelmrose
Copy link
Author

@michaelmrose michaelmrose commented May 20, 2021

So /boot/efi/ is the fat EFI partition. in /boot/efi/EFI/void is the initial initramfs, which according to lsinitrd doesn't contain /etc/hostid which is why this message shows up.

@michaelmrose
Copy link
Author

@michaelmrose michaelmrose commented May 20, 2021

Additionally I get another dracut error message that says dracut/modules.d/90zfs/parse-zfs.sh no such file

parse-zfs also contains text from the above dracut-lib.sh and is probably the actual script echoing the above error at startup

@beanpole135 beanpole135 self-assigned this May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment