init=/bin/bash
After booting, you might’ve tried to shut down or reboot the machine, only to see a message similar to the following:
System has not been booted with systemd as init system (PID 1).
This happens because init
is supposed to take care of shutting down or rebooting the system. However, we have hijacked it and made it /bin/bash
, so what if you can’t find the power button, or are working remotely?
The fast and easy fix is to press or send the key combination of Ctrl+Alt+Del
, this will immediately shut down (or reboot, depending on the configuration) the machine.
To fix this, there is, generally speaking, only one reliable solution: setting a password for editing the configuration.
You might also want to disable the recovery boot option by editing /etc/default/grub
and setting GRUB_DISABLE_RECOVERY=true
.
https://wiki.archlinux.org/title/GRUB/Tips_and_tricks#Password_protection_of_GRUB_menu