Changeset 2c8fdfc
- Timestamp:
- 09/07/2021 08:35:55 PM (3 years ago)
- Branches:
- 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, arm, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- c6f58f47
- Parents:
- d672ab7
- Location:
- chapter07
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/chapter07.xml
rd672ab7 r2c8fdfc 25 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="texinfo.xml"/> 26 26 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/> 27 27 28 28 <!-- 29 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tcl.xml"/> -
chapter07/cleanup.xml
rd672ab7 r2c8fdfc 10 10 11 11 <title>Cleaning up and Saving the Temporary System</title> 12 12 13 13 <sect2> 14 14 <title>Cleaning</title> … … 27 27 28 28 <para> 29 The current system size is now about 3 GB, however 29 The current system size is now about 3 GB, however 30 30 the /tools directory is no longer needed. It uses about 31 31 1 GB of disk space. Delete it now: … … 43 43 linkend="chapter-building-system"/>, the temporary files will be 44 44 overwritten. So it may be a good idea to do a backup of the current 45 system as described below. 45 system as described below. 46 46 </para></note> 47 47 48 48 <para> 49 49 The following steps are performed from outside the chroot … … 62 62 care about the commands you're going to run as mistakes 63 63 here can modify your host system. Be aware that the 64 environment variable <envar>LFS</envar> 65 is set for user <systemitem class="username">lfs</systemitem> by default 66 but may <emphasis>not</emphasis> be set for 67 <systemitem class="username">root</systemitem>. Whenever 68 commands are to be executed by <systemitem class="username">root</systemitem>, 64 environment variable <envar>LFS</envar> 65 is set for user <systemitem class="username">lfs</systemitem> by default 66 but may <emphasis>not</emphasis> be set for 67 <systemitem class="username">root</systemitem>. Whenever 68 commands are to be executed by <systemitem class="username">root</systemitem>, 69 69 make sure you have set <envar>LFS</envar>. 70 70 This has been discussed in <xref linkend='ch-partitioning-aboutlfs'/>. … … 90 90 <para> 91 91 Make sure you have at least 1 GB free disk space (the source tarballs 92 will be included in the backup archive) in the home directory of user 92 will be included in the backup archive) in the home directory of user 93 93 <systemitem class="username">root</systemitem>. 94 94 </para> … … 108 108 long time (over 10 minutes) even on a resonably fast system. 109 109 </para> 110 110 111 111 <para> 112 Also, ensure the <envar>LFS</envar> environment variable is set 112 Also, ensure the <envar>LFS</envar> environment variable is set 113 113 for the root user. 114 114 </para> 115 115 </note> 116 116 117 <screen role="nodump" revision="sysv"><userinput>cd $LFS 117 <screen role="nodump" revision="sysv"><userinput>cd $LFS 118 118 tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz .</userinput></screen> 119 119 120 <screen role="nodump" revision="systemd"><userinput>cd $LFS 120 <screen role="nodump" revision="systemd"><userinput>cd $LFS 121 121 tar -cJpf $HOME/lfs-temp-tools-&versiond;.tar.xz .</userinput></screen> 122 122 123 123 <para> 124 124 Replace <envar>$HOME</envar> by a directory of your choice if you 125 do not want to have the backup stored in <systemitem 125 do not want to have the backup stored in <systemitem 126 126 class="username">root</systemitem>'s home directory. 127 127 </para> … … 134 134 In case some mistakes have been made and you need to start over, you can 135 135 use this backup to restore the system and save some recovery time. 136 Since the sources are located under 136 Since the sources are located under 137 137 <filename class="directory">$LFS</filename>, they are included in the 138 138 backup archive as well, so they do not need to be downloaded again. After … … 145 145 146 146 <warning><para>The following commands are extremly dangerous. If 147 you run <command>rm -rf ./*</command> as the root user and you 148 do not change to the $LFS directory or the <envar>LFS</envar> 149 environment variable is not set for the root user, it will destroy 147 you run <command>rm -rf ./*</command> as the root user and you 148 do not change to the $LFS directory or the <envar>LFS</envar> 149 environment variable is not set for the root user, it will destroy 150 150 your entire host system. YOU ARE WARNED.</para></warning> 151 151 152 <screen role="nodump" revision="sysv"><computeroutput>cd $LFS 153 rm -rf ./* 152 <screen role="nodump" revision="sysv"><computeroutput>cd $LFS 153 rm -rf ./* 154 154 tar -xpf $HOME/lfs-temp-tools-&version;.tar.xz</computeroutput></screen> 155 155 156 <screen role="nodump" revision="systemd"><computeroutput>cd $LFS 157 rm -rf ./* 156 <screen role="nodump" revision="systemd"><computeroutput>cd $LFS 157 rm -rf ./* 158 158 tar -xpf $HOME/lfs-temp-tools-&versiond;.tar.xz</computeroutput></screen> 159 159 … … 173 173 </para> 174 174 </important> 175 175 176 176 </sect2> 177 177 -
chapter07/kernfs.xml
rd672ab7 r2c8fdfc 105 105 <para>In some host systems, <filename>/dev/shm</filename> is a 106 106 symbolic link to <filename class="directory">/run/shm</filename>. 107 The /run tmpfs was mounted above so in this case only a 107 The /run tmpfs was mounted above so in this case only a 108 108 directory needs to be created.</para> 109 109 -
chapter07/perl.xml
rd672ab7 r2c8fdfc 61 61 <term><parameter>-des</parameter></term> 62 62 <listitem> 63 <para>This is a combination of three options: -d uses defaults for 63 <para>This is a combination of three options: -d uses defaults for 64 64 all items; -e ensures completion of all tasks; -s silences 65 65 non-essential output.</para>
Note:
See TracChangeset
for help on using the changeset viewer.