Page MenuHomeFreeBSD

Make base kernel packages save the old kernel on deinstallation
AbandonedPublic

Authored by madpilot on Sep 11 2018, 3:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 15, 8:19 AM
Unknown Object (File)
Dec 5 2025, 9:37 AM
Unknown Object (File)
Dec 1 2025, 7:55 PM
Unknown Object (File)
Dec 1 2025, 9:10 AM
Unknown Object (File)
Nov 24 2025, 7:42 AM
Unknown Object (File)
Nov 24 2025, 3:25 AM
Unknown Object (File)
Nov 23 2025, 7:39 PM
Unknown Object (File)
Nov 22 2025, 10:41 AM
Subscribers

Details

Reviewers
None
Summary

As the subject states I've made this modification to force the kernel base packages to save a copy of the kernel directory in kernel.old.

I'm doing it through deinstall script. The script I added actually mimics what the Makefiles do when installkernel is called.

Not sure this is the best solution, maybe it partly beats the point of using packages to manage kernels, but I think it important to preserve a copy of the previous kernel when upgrading to have a fallback in case of problems.

Test Plan

I've been using this on my machines for a while with no ill effects.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19523
Build 19115: arc lint + arc unit