]> git.ipfire.org Git - thirdparty/systemd.git/commit
debug-generator: add a kernel cmdline option to pause the boot process 35410/head
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Fri, 20 Dec 2024 07:51:23 +0000 (08:51 +0100)
committerAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Fri, 20 Dec 2024 07:51:23 +0000 (08:51 +0100)
commite9f781a5a4721d3e58798b37e30bb4dcdbe54c02
tree2f3ce9d4d734466eeb0bb5e563e29851bebf66e0
parentcb3801a4c913a924cb4e339af9a27610febe6c47
debug-generator: add a kernel cmdline option to pause the boot process

Introduce the `systemd.break=` kernel command line option to allow stopping the
boot process at a certain point and spawn a debug shell. After exiting this
shell, the system will resume booting.

It accepts the following values:
- `pre-udev`: before starting to process kernel uevents (initrd and host).
- `pre-basic`: before leaving early boot and regular services start (initrd and
host).
- `pre-mount`: before the root filesystem is mounted (initrd).
- `pre-switch-root`: before switching root (initrd).
man/kernel-command-line.xml
man/systemd-debug-generator.xml
src/debug-generator/debug-generator.c
test/units/TEST-81-GENERATORS.debug-generator.sh
units/breakpoint-pre-basic.service.in [new file with mode: 0644]
units/breakpoint-pre-mount.service.in [new file with mode: 0644]
units/breakpoint-pre-switch-root.service.in [new file with mode: 0644]
units/breakpoint-pre-udev.service.in [new file with mode: 0644]
units/meson.build