aboutsummaryrefslogtreecommitdiffstats
path: root/chapter02
diff options
context:
space:
mode:
authorDouglas R. Reno <renodr@linuxfromscratch.org>2021-05-11 23:24:11 -0500
committerDouglas R. Reno <renodr@linuxfromscratch.org>2021-05-11 23:24:11 -0500
commitd7a942197e713339d4dc1eedab4dafd4179a5cd8 (patch)
tree48aba90323070adb9a54e83ce1ebed902d0b19c3 /chapter02
parent0f7d4cb8a734227ea85f46c5b934ed1b85a51b3c (diff)
Merge Xi's changes into trunk
Update to meson-0.58.0 Update to systemd-248 Update to gcc-11.1.0 Update to linux-5.12.1 Update to iproute2-5.12.0 Update to Python-3.9.5 Make /bin, /sbin, and /lib symlinks to their counterparts in /usr. Thanks again for a significant portion of this work goes to Xi, I only really merged it and made a couple of modifications for my updates. To LFS 11.x we go!
Diffstat (limited to 'chapter02')
-rw-r--r--chapter02/creatingpartition.xml20
-rw-r--r--chapter02/mounting.xml6
2 files changed, 19 insertions, 7 deletions
diff --git a/chapter02/creatingpartition.xml b/chapter02/creatingpartition.xml
index 672c2efb5..efca7ea1c 100644
--- a/chapter02/creatingpartition.xml
+++ b/chapter02/creatingpartition.xml
@@ -141,10 +141,22 @@
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
- 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><para>/usr &ndash; In LFS,
+ <filename class="directory">/bin</filename>,
+ <filename class="directory">/lib</filename>, 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
diff --git a/chapter02/mounting.xml b/chapter02/mounting.xml
index 98a99ed38..45f222485 100644
--- a/chapter02/mounting.xml
+++ b/chapter02/mounting.xml
@@ -27,12 +27,12 @@ mount -v -t ext4 /dev/<replaceable>&lt;xxx&gt;</replaceable> $LFS</userinput></s
<para>If using multiple partitions for LFS (e.g., one for <filename
class="directory">/</filename> and another for <filename
- class="directory">/usr</filename>), mount them using:</para>
+ class="directory">/home</filename>), mount them using:</para>
<screen role="nodump"><userinput>mkdir -pv $LFS
mount -v -t ext4 /dev/<replaceable>&lt;xxx&gt;</replaceable> $LFS
-mkdir -v $LFS/usr
-mount -v -t ext4 /dev/<replaceable>&lt;yyy&gt;</replaceable> $LFS/usr</userinput></screen>
+mkdir -v $LFS/home
+mount -v -t ext4 /dev/<replaceable>&lt;yyy&gt;</replaceable> $LFS/home</userinput></screen>
<para>Replace <replaceable>&lt;xxx&gt;</replaceable> and
<replaceable>&lt;yyy&gt;</replaceable> with the appropriate partition