gedankensplitter/systemd-bootdelay.md

28 lines
839 B
Markdown
Raw Normal View History

2022-02-01 20:34:39 +00:00
---
keywords:
- IT
---
2022-01-17 07:33:46 +00:00
# systemd cheat sheet
2022-01-10 06:31:31 +00:00
## systemd- bootdelay analyzing
2022-01-17 07:33:46 +00:00
- Short summarize over boot duration
`system-analyze`
- Generate plot for systemd boot process
2022-01-17 08:22:46 +00:00
`system-analyze plot > boot.svg`
2022-01-17 07:33:46 +00:00
`firefox boot.svg`
- kernel log with delta in time
`dmesg --show-delta --color=always | less -R`
2022-01-17 08:22:46 +00:00
- correlate initramfs with kernel messages
2022-01-17 07:33:46 +00:00
`journalctl -b -o short-monotonic`
- sort systemd load times
`systemd-analyze blame`
2022-01-17 08:22:46 +00:00
- select specific initramfs service
2022-01-17 07:33:46 +00:00
`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`
2022-01-10 06:31:31 +00:00
2022-03-22 13:49:51 +00:00
## check offline journald log
`journalctl --root=/run/media/user/partitionname/`
journalctl needs the actual root of the root partition and not the journal folder.