Page MenuHomeFreeBSD

freebsd-update: skip special kernel handling for non-host upgrades
Needs ReviewPublic

Authored by emaste on Sep 27 2023, 10:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 19, 12:04 PM
Unknown Object (File)
Sun, May 19, 9:46 AM
Unknown Object (File)
Fri, Apr 26, 1:51 AM
Unknown Object (File)
Apr 22 2024, 4:39 AM
Unknown Object (File)
Apr 19 2024, 7:01 PM
Unknown Object (File)
Mar 20 2024, 12:52 AM
Unknown Object (File)
Mar 19 2024, 7:45 PM
Unknown Object (File)
Dec 13 2023, 3:02 AM

Details

Reviewers
cperciva
Group Reviewers
secteam
releng
Summary

If upgrading other than the root directory via -b or -j (e.g, upgrading
a jail from outside) we may not have a kernel at all. Skip the special
case that adds the GENERIC kernel.

PR: 264075

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.

Will this affect upgrading poudriere jails with a kernel, see poudriere-jail(8)'s -K?

Will this affect upgrading poudriere jails with a kernel, see poudriere-jail(8)'s -K?

This special case shouldn't be needed at all, I believe. In normal operation we will match /boot/kernel/kernel to the generic kernel component. This is a fallback case to make sure that *some* kernel is installed on the host so that we don't end up unable to boot, if we don't match.