28 lines
839 B
Markdown
28 lines
839 B
Markdown
---
|
|
keywords:
|
|
- IT
|
|
---
|
|
# systemd cheat sheet
|
|
## systemd- bootdelay analyzing
|
|
- Short summarize over boot duration
|
|
`system-analyze`
|
|
- Generate plot for systemd boot process
|
|
`system-analyze plot > boot.svg`
|
|
|
|
`firefox boot.svg`
|
|
- kernel log with delta in time
|
|
`dmesg --show-delta --color=always | less -R`
|
|
- correlate initramfs with kernel messages
|
|
`journalctl -b -o short-monotonic`
|
|
- sort systemd load times
|
|
`systemd-analyze blame`
|
|
- select specific initramfs service
|
|
`journalctl -b -o short-monotonic -u systemd-udev-settle.service`
|
|
- analyse with systemd-bootchart
|
|
`init=/lib/systemd/systemd-bootchart`
|
|
- the chart file is located under `/run/log/bootchart`
|
|
|
|
## check offline journald log
|
|
`journalctl --root=/run/media/user/partitionname/`
|
|
journalctl needs the actual root of the root partition and not the journal folder.
|