(Gotta keep my miniscule *nix lore uncluttered by any Repo-grade fantasies, here.)
IIRC, it's possible to swap kernels live, without missing a beat / lousing up the Uptime -?- (prolly too, that's just zany enough an attribute to rilly piss-off the ant army of Doze droids Every Time. Love. It.)
Izzat right? - so then, all you're hinting about here is some IF ...
(like say, lookin fer a library or three - one o' them there alcoholic dependency afflictions goes wrong..? goes wrong.. goe