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)
Sun, Oct 5, 9:36 PM
Unknown Object (File)
Tue, Sep 23, 11:28 AM
Unknown Object (File)
Mon, Sep 22, 5:35 PM
Unknown Object (File)
Aug 29 2025, 7:13 PM
Unknown Object (File)
Jul 1 2025, 8:02 AM
Unknown Object (File)
Jun 27 2025, 3:11 PM
Unknown Object (File)
Jun 22 2025, 8:00 PM
Unknown Object (File)
Jun 15 2025, 1:36 PM
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