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)
Sat, Sep 26, 1:02 AM
Unknown Object (File)
Tue, Sep 22, 9:01 AM
Unknown Object (File)
Mon, Sep 21, 4:14 PM
Unknown Object (File)
Mon, Sep 21, 3:46 PM
Unknown Object (File)
Sun, Sep 20, 6:24 PM
Unknown Object (File)
Fri, Sep 18, 10:58 PM
Unknown Object (File)
Sun, Sep 13, 11:32 PM
Unknown Object (File)
Sep 4 2026, 11:36 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