<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rootfs on systemd中文文档</title><link>http://systemd.cn/tags/rootfs/</link><description>Recent content in Rootfs on systemd中文文档</description><generator>Hugo</generator><language>zh</language><copyright>[© CC BY 4.0](https://creativecommons.org/licenses/by/4.0/legalcode)</copyright><atom:link href="http://systemd.cn/tags/rootfs/index.xml" rel="self" type="application/rss+xml"/><item><title>启动组件和根文件系统探测</title><link>http://systemd.cn/docs/Booting/ROOTFS_DISCOVERY/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://systemd.cn/docs/Booting/ROOTFS_DISCOVERY/</guid><description>&lt;h1 id="启动组件和根文件系统探测"&gt;启动组件和根文件系统探测&lt;a class="anchor" href="#%e5%90%af%e5%8a%a8%e7%bb%84%e4%bb%b6%e5%92%8c%e6%a0%b9%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e6%8e%a2%e6%b5%8b"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The recommended way to boot a &lt;a href="https://systemd.io/"&gt;&lt;code&gt;systemd&lt;/code&gt;&lt;/a&gt; based
&lt;a href="https://en.wikipedia.org/wiki/UEFI"&gt;UEFI&lt;/a&gt; system consists primarily of three
components:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;A boot loader,
i.e. &lt;a href="https://www.freedesktop.org/software/systemd/man/latest/systemd-boot.html"&gt;&lt;code&gt;systemd-boot&lt;/code&gt;&lt;/a&gt;
that provides interactive and programmatic control of what precisely to
boot. It takes care of enumerating all possible boot targets (implementing
the &lt;a href="https://uapi-group.org/specifications/specs/boot_loader_specification/"&gt;UAPI.1 Boot Loader
Specification&lt;/a&gt;),
potentially presenting it to the user in a menu, but otherwise picking an
item automatically, implementing boot counting and automatic rollback if
desired.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A &lt;a href="https://uapi-group.org/specifications/specs/unified_kernel_image/"&gt;UAPI.5 Unified Kernel Image
(&amp;ldquo;UKI&amp;rdquo;)&lt;/a&gt;,
i.e. an UEFI PE executable that combines
&lt;a href="https://www.freedesktop.org/software/systemd/man/latest/systemd-stub.html"&gt;&lt;code&gt;systemd-stub&lt;/code&gt;&lt;/a&gt;,
a Linux kernel, and an initial RAM disk (&amp;quot;&lt;code&gt;initrd&lt;/code&gt;&amp;quot;) into one. UKIs are
self-descriptive: the aforementioned boot loader enumerates these UKIs and
automatically extracts all information necessary to determine which menu
entries to generate for them. Within the UKI runtime (very early during
kernel initialization) the transition from the UEFI firmware code to the
Linux code takes place, i.e. it executes the fundamental
&lt;code&gt;ExitBootServices()&lt;/code&gt; UEFI call that ends PC firmware control,
and lets the Linux kernel take over.&lt;/p&gt;</description></item></channel></rss>