• @ZeroEcks@lemmy.ml
    link
    fedilink
    79 months ago

    Is there a way to upgrade your kernel then unplug and replug a USB device without it breaking yet?

      • KubeRoot
        link
        fedilink
        19 months ago

        Does that update the kernel in-place, or only fix up kernel modules to continue working after the update?

        • @OneCardboardBox
          link
          English
          3
          edit-2
          9 months ago

          It moves the old kernel modules to the right location for the old kernel to still find them after you’ve upgraded. When you restart the system to use the new kernel, the old kernel module symlinks are cleaned up.

          From what I understand, live kernel patching is only recommended for critical security fixes to server environments where you can’t just boot off every user. https://wiki.archlinux.org/title/Kernel_live_patching

          • KubeRoot
            link
            fedilink
            19 months ago

            Fair enough, and my bad, I though the original question was about live upgrading the kernel, but looking at the thread again, they were just asking about the system not breaking. Thanks for putting the effort into explaining!