this post was submitted on 12 Jan 2024
73 points (98.7% liked)

Linux

48378 readers
1753 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] taanegl@beehaw.org 8 points 10 months ago* (last edited 10 months ago) (2 children)

I can see this being useful for NixOS. It's still a glimmer in the postman's eye, and we're WAITING for systemd src to come with certain options to make the attaching and reattaching of systemd easier.

But I could easily see nixpkgs implement functions that allow nixos-rebuild switch to use either live patching method, or even implementing one specifically for NixOS.

This would be twice as neat, because switch is already magical in how it shifts from one system to another. If you could then also live patch the kernel? It just adds another super power.

[–] Atemu@lemmy.ml 2 points 10 months ago

But I could easily see nixpkgs implement functions that allow nixos-rebuild switch to use either live patching method, or even implementing one specifically for NixOS.

Sadly, I could not. Live patching requires extensive knowledge of the previous system state and that is the antithesis to NixOS where any system state is fully independent of any other possible system state.

nixos-rebuild switch isn't very magical at all once you understand this principle.

Live patching is also not really something you want to use or use frequently. It's more intended for "this super critical box can only be taken down next Saturday but there's a fix for a 0-day in the kernel today that we need ASAP". If it's at all possible to simply reboot, simply reboot (or kexec).

[–] BlanK0@lemmy.ml 2 points 10 months ago

That actually would be really cool ngl