aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/stripping.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter07/stripping.xml')
-rw-r--r--chapter07/stripping.xml17
1 files changed, 12 insertions, 5 deletions
diff --git a/chapter07/stripping.xml b/chapter07/stripping.xml
index 431affdc3..a31faadc3 100644
--- a/chapter07/stripping.xml
+++ b/chapter07/stripping.xml
@@ -107,7 +107,7 @@ strip --strip-unneeded $LFS/tools/bin/*</userinput></screen>
</sect2>
<sect2>
- <title>Backup / Restore</title>
+ <title>Backup</title>
<para>
Now that the essential tools have been created, its time to think about
@@ -141,6 +141,10 @@ tar -cJpf $HOME/lfs-temp-tools-&versiond;.tar.xz .</userinput></screen>
do not want to have the backup stored in <systemitem
class="username">root</systemitem>'s home directory.
</para>
+ </sect2>
+
+ <sect2>
+ <title>Restore</title>
<para>
In case some mistakes have been made and you need to start over, you can
@@ -152,13 +156,16 @@ tar -cJpf $HOME/lfs-temp-tools-&versiond;.tar.xz .</userinput></screen>
restore the backup by executing the following commands:
</para>
-<screen role="nodump" revision="sysv"><userinput>cd $LFS &amp;&amp;
+<!-- Make the following look different so users don't blindly run the
+ restore when they don't need to. -->
+
+<screen role="nodump" revision="sysv"><computeroutput>cd $LFS &amp;&amp;
rm -rf ./* &amp;&amp;
-tar -xpf $HOME/lfs-temp-tools-&version;.tar.xz</userinput></screen>
+tar -xpf $HOME/lfs-temp-tools-&version;.tar.xz</computeroutput></screen>
-<screen role="nodump" revision="systemd"><userinput>cd $LFS &amp;&amp;
+<screen role="nodump" revision="systemd"><computeroutput>cd $LFS &amp;&amp;
rm -rf ./* &amp;&amp;
-tar -xpf $HOME/lfs-temp-tools-&versiond;.tar.xz</userinput></screen>
+tar -xpf $HOME/lfs-temp-tools-&versiond;.tar.xz</computeroutput></screen>
<para>
Again, double check that the environment has been setup properly