[prev in list] [next in list] [prev in thread] [next in thread]
List: systemd-devel
Subject: [systemd-devel] What is the shutdown sequence with systemd and dracut?
From: Patrick Schleizer <patrick-mailinglists () whonix ! org>
Date: 2022-08-08 12:24:27
Message-ID: 7abb7852-c097-34d6-c4ea-f2101fc5d327 () whonix ! org
[Download RAW message or body]
Hi!
This is what I think but please correct me if I am wrong.
1. systemd runs systemd units for systemd shutdown.target
2. /lib/systemd/system-shutdown (shutdown.c) runs
3. /lib/systemd/system-shutdown executes /run/initramfs/shutdown (which
is dracut)
4. dracut shutdown.sh performs various cleanup tasks (such as kill all
remaining processes and unmount root disk)
5. /lib/systemd/system-shutdown runs scripts in the
/usr/lib/systemd/system-shutdown/ folder
6. /lib/systemd/system-shutdown performs further cleanup (similar to
dracut, probably some functionality duplicated with dracut, includes
kill all remaining processes, unmount the root risk) and eventually
halt/reboot/poweroff/kexec.
Cheers,
Patrick
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic