mirror of
https://github.com/systemd/systemd.git
synced 2024-12-21 13:34:21 +03:00
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.
(cherry picked from commit ace26a511f
)
This commit is contained in:
parent
08cf1c5ce5
commit
b78f99e71b
6
TODO
6
TODO
@ -1302,12 +1302,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
|
||||
|
@ -344,6 +344,17 @@ systemd-reboot.service | | | |
|
||||
shutdown phase described above.</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>The exitrd</title>
|
||||
|
||||
<para>The "exitrd" is a concept symmetrical to the initrd. When the system manager is shutting down and
|
||||
<filename>/run/initramfs/shutdown</filename> exists, it will switch root to
|
||||
<filename>/run/initramfs/</filename> and execute <filename>/shutdown</filename>. This program runs from
|
||||
the tmpfs mounted on <filename>/run/</filename>, 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.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>See Also</title>
|
||||
<para><simplelist type="inline">
|
||||
|
@ -88,10 +88,10 @@
|
||||
<refsect2>
|
||||
<title><filename>/etc/initrd-release</filename></title>
|
||||
|
||||
<para>In the <ulink
|
||||
url="https://docs.kernel.org/admin-guide/initrd.html">initrd</ulink>,
|
||||
<para>In the <ulink url="https://docs.kernel.org/admin-guide/initrd.html">initrd</ulink>
|
||||
and exitrd,
|
||||
<filename>/etc/initrd-release</filename> plays the same role as <filename>os-release</filename> 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.
|
||||
<filename>/etc/os-release</filename> should be symlinked to <filename>/etc/initrd-release</filename>
|
||||
(or vice versa), so programs that only look for <filename>/etc/os-release</filename> (as described
|
||||
above) work correctly.</para>
|
||||
|
Loading…
Reference in New Issue
Block a user