From: Zbigniew Jędrzejewski-Szmek Date: Mon, 23 Sep 2024 09:41:29 +0000 (+0200) Subject: man: slightly enhance docs about "exitrd" and remove TODO entry for it X-Git-Tag: v257-rc1~356^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ace26a511ff63dbc15f1b2b0b941cbd3294a288c;p=thirdparty%2Fsystemd.git man: slightly enhance docs about "exitrd" and remove TODO entry for it The concept is fairly well established and present in our docs in various places. Say that the exitrd is also marked by the presence of /etc/initrd-release. --- diff --git a/TODO b/TODO index 85bc780b334..773cdac8e35 100644 --- a/TODO +++ b/TODO @@ -1355,12 +1355,6 @@ Features: CapabilityQuintet we already have. (This likely allows us to drop libcap dep in the base OS image) -* add concept for "exitrd" as inverse of "initrd", that we can transition to at - shutdown, and has similar security semantics. This should then take the place - of dracut's shutdown logic. Should probably support sysexts too. Care needs - to be taken that the resulting logic ends up in RAM, i.e. is copied out of - on-disk storage. - * userdbd: implement an additional varlink service socket that provides the host user db in restricted form, then allow this to be bind mounted into sandboxed environments that want the host database in minimal form. All diff --git a/man/bootup.xml b/man/bootup.xml index db98f4649af..bba3bd2d7d1 100644 --- a/man/bootup.xml +++ b/man/bootup.xml @@ -343,6 +343,17 @@ systemd-reboot.service | | | | shutdown phase described above. + + The exitrd + + The "exitrd" is a concept symmetrical to the initrd. When the system manager is shutting down and + /run/initramfs/shutdown exists, it will switch root to + /run/initramfs/ and execute /shutdown. This program runs from + the tmpfs mounted on /run/, so it can unmount the old root file system and perform + additional steps, for example dismantle complex storage or perform additional logging about the shutdown. + + + See Also diff --git a/man/os-release.xml b/man/os-release.xml index 315ed8fcd66..1ff112e0579 100644 --- a/man/os-release.xml +++ b/man/os-release.xml @@ -88,10 +88,10 @@ <filename>/etc/initrd-release</filename> - In the initrd, + In the initrd + and exitrd, /etc/initrd-release plays the same role as os-release in the - main system. Additionally, the presence of that file means that the system is in the initrd phase. + main system. Additionally, the presence of that file means that the system is in the initrd/exitrd phase. /etc/os-release should be symlinked to /etc/initrd-release (or vice versa), so programs that only look for /etc/os-release (as described above) work correctly.