My crippled kernel count is around 6, how about yours?

  • unhrpetby@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 day ago

    It can be done if you mess with the initramfs.

    The kernel starts everything else by unpacking an archive containing a minimal environment to set stuff up for later. Such as loading needed kernel modules, decrypting your drive, etc. It then launches, by default, the /init program (mines a shell script).

    That program is PID 1. If it dies, your kernel will panic.

    After it finishes setup, it execs your actual /sbin/init. These means it dies, and that program (systemd, openrc, dinit, runit, etc) becomes PID 1. If an issue happens, both could fail to execute and the kernel will loop forever.

    • Shanmugha@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      16 hours ago

      Thank you for explanation :) I suspected something like that - mess up with some internals, you do have a chance to bring the thing down. Which is why I always have a bootable usb around before doing anything risky