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

[After FreeBSD update] OpenZFS: load /boot/modules/openzfs.ko … bzf_open: not a file – can't find 'kernel' #125

Closed
grahamperrin opened this issue Feb 6, 2021 · 9 comments

Comments

@grahamperrin
Copy link
Contributor

0.4.0 (OD26)

FreeBSD installed whilst booted from 0.4.0 (OD26) in live mode. OS and packages updated.

OpenZFS installed, /boot/loader.conf edited, system restarted:

image

I'll start a snapshot of the virtual machine from before the restart, attempt to understand the issue …

@grahamperrin

This comment has been minimized.

@grahamperrin

This comment has been minimized.

@grahamperrin

This comment has been minimized.

@grahamperrin grahamperrin changed the title Compatibility with OpenZFS OpenZFS: load /boot/modules/openzfs.ko … bzf_open: not a file – can't find 'kernel' Feb 6, 2021
@grahamperrin

This comment has been minimized.

@grahamperrin

This comment has been minimized.

@probonopd probonopd changed the title OpenZFS: load /boot/modules/openzfs.ko … bzf_open: not a file – can't find 'kernel' [After pkg update] OpenZFS: load /boot/modules/openzfs.ko … bzf_open: not a file – can't find 'kernel' Feb 7, 2021
@probonopd
Copy link
Member

Things like this are the reson why I am not in favor of using pkg as a way to update the base system and would rather like to see the base system be contained in one single image that gets (binary delta) updated.

Please keep in mind that updating helloSystem with pkg is not a supported aspect at this time (= possible but entirely untested and not actively debugged).

@grahamperrin
Copy link
Contributor Author

grahamperrin commented Feb 7, 2021

updating helloSystem with pkg is not a supported aspect at this time

👍

I'm currently installing from ports in a clean-ish non-helloSystem FreeBSD 12.2 to tell wheether the issue is helloSystem-specific …

@grahamperrin
Copy link
Contributor Author

grahamperrin commented Feb 7, 2021

#125 (comment)

My bad:

sudo git -C /usr clone -o freebsd -b stable/12 --depth 1 https://git.freebsd.org/src.git src

Wrong branch! For 12.2-RELEASE-p3 it should have been:

sudo git -C /usr clone -o freebsd -b releng/12.2 --depth 1 https://git.freebsd.org/src.git src

Reference: https://matrix.to/#/!qZXgYtEIHagWHrEQQb:matrix.org/$1612705540454645SmOSn:matrix.org?via=matrix.org&via=t2bot.io

releng/12.2 or better yet, the specific commit on that which corresponds to -p3 (I don't know if RE have started doing proper tags on patch releases yet, but they need to start doing that)

@grahamperrin
Copy link
Contributor Author

When I raised this incident, I did not realise that packages for 12.2 were built from 12.1 jails. That approach is ending.

From https://matrix.to/#/!qZXgYtEIHagWHrEQQb:matrix.org/$1612636778280808wSFLC:matrix.org?via=matrix.org&via=t2bot.io yesterday:

… the 12.x repo is built on 12.1 until after 12.1 is EOL, and then it's built on 12.2

… a full build takes nearly 4 days …

12.1 https://pkg-status.freebsd.org/builds/default:default:121amd64:563269:beefy6 began on Saturday 30th January, ran for around ninety-one hours:

image

  • openzfs was not amongst the failures.

12.2 https://pkg-status.freebsd.org/builds/default:default:122amd64:563982:beefy6 began on Thursday 4th February, around eighty-seven hours elapsed:

image

  • given the 12.1 success above and the 12.2 success below, it's reasonable to assume that this build will include sysutils/openzfs-kmod.

With sysutils/openzfs from the latest repo and sysutils/openzfs-kmod from ports:

image

  • boot succeeds
  • as far as I can tell, the opensolaris kernel module is not required.

@grahamperrin grahamperrin changed the title [After pkg update] OpenZFS: load /boot/modules/openzfs.ko … bzf_open: not a file – can't find 'kernel' [After FreeBSD update] OpenZFS: load /boot/modules/openzfs.ko … bzf_open: not a file – can't find 'kernel' Feb 7, 2021
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