Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CMCDragonkai/20cf38167c54cc41c075985fa3bd5e4a to your computer and use it in GitHub Desktop.
Save CMCDragonkai/20cf38167c54cc41c075985fa3bd5e4a to your computer and use it in GitHub Desktop.
Edit the Boot Command Line with systemd #linux #nixos #systemd

Edit the Boot Command Line with systemd

If you hit a boot error where there is a start job that cannot be terminated, you can enter the systemd debug shell.

To do this, at the systemd-boot menu, hit the e key and specify: systemd.debug-shell=1.

In the future you can do this in configuration.nix:

systemd.additionalUpstreamSystemUnits = [ "debug-shell.service" ];

Then you can enter the shell on TTY9 and debug the problem.

From: https://unix.stackexchange.com/questions/544000/systemd-how-to-stop-a-start-job-without-limit

@CMCDragonkai
Copy link
Author

Like this problem:

IMG_20210313_161150

@takedawilliam
Copy link

When I run sudo systemctl enable --now debug-shell, the following error appears

Failed to enable unit: File /etc/systemd/system/sysinit.target.wants/debug-shell.service: Read-only file system

Do you know how to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment