aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-09-24 18:56:45 +0800
committerXi Ruoyao <xry111@xry111.site>2022-09-24 18:56:45 +0800
commitad9fbd14ae3081faf42dd60a60c56df13752c4d8 (patch)
tree67d5c895a817e35ea884a002a2adfa3c2a7589b4
parentf001ece90548140698fe0a2f02c1690aecbb9933 (diff)
mounting: create &fstab; conventional entity and use it
-rw-r--r--chapter02/mounting.xml4
-rw-r--r--general.ent1
2 files changed, 3 insertions, 2 deletions
diff --git a/chapter02/mounting.xml b/chapter02/mounting.xml
index 69a52c04d..f222fb052 100644
--- a/chapter02/mounting.xml
+++ b/chapter02/mounting.xml
@@ -47,9 +47,9 @@ mount -v -t ext4 /dev/<replaceable>&lt;yyy&gt;</replaceable> $LFS/home</userinpu
<warning><para>The above instructions assume that you will not restart
your computer throughout the LFS process. If you shut down your system,
you will either need to remount the LFS partition each time you restart
- the build process, or modify the host system's /etc/fstab file to automatically
+ the build process, or modify the host system's &fstab; file to automatically
remount it when you reboot. For example, you might add this line to your
- /etc/fstab file:
+ &fstab; file:
<screen role="nodump">/dev/<replaceable>&lt;xxx&gt;</replaceable> /mnt/lfs ext4 defaults 1 1</screen>
diff --git a/general.ent b/general.ent
index f378f7e20..82d69cf08 100644
--- a/general.ent
+++ b/general.ent
@@ -121,6 +121,7 @@
<!ENTITY root "<systemitem class='username'>root</systemitem>">
<!ENTITY lfs-user "<systemitem class='username'>lfs</systemitem>">
+<!ENTITY fstab "<filename>/etc/fstab</filename>">
<!ENTITY % packages-entities SYSTEM "packages.ent">
%packages-entities;