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)
Jan 14 2024, 6:22 AM
Unknown Object (File)
Dec 24 2023, 1:45 PM
Unknown Object (File)
Nov 2 2023, 12:10 AM
Unknown Object (File)
Oct 24 2023, 9:29 AM
Unknown Object (File)
Oct 12 2023, 12:47 AM
Unknown Object (File)
Oct 6 2023, 11:04 AM
Unknown Object (File)
May 25 2023, 11:23 PM
Unknown Object (File)
Apr 5 2023, 9:15 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