aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2021-04-23 20:10:17 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2021-04-23 20:10:17 +0800
commitc2c41b106d7c703117bfb75ee9f2483a9abe667f (patch)
tree053bec5e72bd4cbb3c76f6b9a0f49a0932438f43
parent9f1ab8425fd8ff444e096d20f655291841be01de (diff)
usr-move: write desc for merged /usr in ch02
-rw-r--r--chapter02/creatingpartition.xml21
1 files changed, 20 insertions, 1 deletions
diff --git a/chapter02/creatingpartition.xml b/chapter02/creatingpartition.xml
index 672c2efb5..be5044a97 100644
--- a/chapter02/creatingpartition.xml
+++ b/chapter02/creatingpartition.xml
@@ -141,11 +141,30 @@
builds. The size is generally fairly large and depends on available disk
space.</para></listitem>
- <listitem><para>/usr &ndash; A separate /usr partition is generally used
+ <listitem revision="sysv"><para>/usr &ndash; A separate /usr partition is generally used
if providing a server for a thin client or diskless workstation. It is
normally not needed for LFS. A size of ten gigabytes will handle most
installations.</para></listitem>
+ <listitem revision="systemd"><para>/usr &ndash; In LFS with systemd as the
+ init process, <filename class="directory">/bin</filename>,
+ <filename class="directory">/lib</filename>,
+ <filename class="directory">/lib64</filename> (only exists for 64-bit
+ host), and
+ <filename class="directory">/sbin</filename> are symlinks to their
+ counterpart in <filename class="directory">/usr</filename>.
+ So <filename class="directory">/usr</filename> contains all binaries
+ needed for the system to run. For LFS a separate partition for
+ <filename class="directory">/usr</filename> is normally not needed.
+ If you need it anyway, you should make a partition large enough to
+ fit all programs and libraries in the system. The root partition can be
+ very small (maybe just one gigabyte) in this configuration, so it's
+ suitable for a thin client or diskless workstation (where
+ <filename class="directory">/usr</filename> is mounted from a remote
+ server). However you should take care that an initramfs (not covered by
+ LFS) will be needed to boot a system with separate
+ <filename class="directory">/usr</filename> partition.</para></listitem>
+
<listitem><para>/opt &ndash; This directory is most useful for
BLFS where multiple installations of large packages like Gnome or KDE can
be installed without embedding the files in the /usr hierarchy. If