you can’t really hot swap the kernel, because all of the system runs on it.
you’d need to stop the system (you can save its state and recover where you left), reboot to load the new kernel and let it take control.
however, there are some distros and programs that allow you to hot swap certain parts of the kernel (mainly drivers) without rebooting. Note that, even though the system doesn’t reboot, most packages still need to be restarted for them to pick up the new driver.
Not quite like that but there is a thing called live patching that some distros offer. It’s mainly to used fix security issues rather than a typical update
Ubuntu livepatching and kpatch are some different tools out there for that if you want to look into it
Aren’t there distros that treat the kernal like anyother package and can hot swap it?
you can’t really hot swap the kernel, because all of the system runs on it.
you’d need to stop the system (you can save its state and recover where you left), reboot to load the new kernel and let it take control.
however, there are some distros and programs that allow you to hot swap certain parts of the kernel (mainly drivers) without rebooting. Note that, even though the system doesn’t reboot, most packages still need to be restarted for them to pick up the new driver.
deleted by creator
Not quite like that but there is a thing called live patching that some distros offer. It’s mainly to used fix security issues rather than a typical update
Ubuntu livepatching and kpatch are some different tools out there for that if you want to look into it