• adavis@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    8 months ago

    Pass something stupid via your bootloader so it aborts boot and dumps you in an initrd busybox shell. No usb required.

    This was my poor man’s boot environments when I was using zfs on root. I had a pacman hook to snapshot before package transactions, then if it became unbootable I’d interrupt the following boot attempt, edit my grub command line with something wrong so I’d get dumped in the busybox shell, import my zfs pool and roll back before finally rebooting again.

    • AeonFelis@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      That’s nice. I’ve later googled it and found out that I could have added 3 to the end of the grub command to make it boot in runlevel 3 which does not trigger the GUI, but I guess your way could also bypass boot issues that prevent even non-gui boot.

      I also see that there is runlevel 1, which is kind of an emergency mode, so maybe that would be the best thing to use?