aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2020-06-14 15:24:09 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2020-06-14 15:24:09 +0000
commit3d92d63bde160bc5ac98f44ec2cc5dd524e06042 (patch)
tree64c7e407e67852878922f83c3f31554e111d2c94 /chapter07
parenta4053b5ba2f039f90fed570bffa9ea6e5cba0ff0 (diff)
Minor updates.
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11939 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07')
-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