diff options
author | Xi Ruoyao <xry111@mengyan1223.wang> | 2020-12-26 15:51:54 +0000 |
---|---|---|
committer | Xi Ruoyao <xry111@mengyan1223.wang> | 2020-12-26 15:51:54 +0000 |
commit | 34fe7e07cd3bc2dad0521e51ba3bbe78de45a671 (patch) | |
tree | 3fc8271f4a48ac2e20ed255cbfb573caceec3ab2 /chapter02 | |
parent | ce9b68d15814efabe161e81f2ac678f0ad4a34f8 (diff) |
decorate usernames with <systemitem>
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12071 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter02')
-rw-r--r-- | chapter02/aboutlfs.xml | 3 | ||||
-rw-r--r-- | chapter02/stages.xml | 20 |
2 files changed, 15 insertions, 8 deletions
diff --git a/chapter02/aboutlfs.xml b/chapter02/aboutlfs.xml index 93f885e22..0d5a5281b 100644 --- a/chapter02/aboutlfs.xml +++ b/chapter02/aboutlfs.xml @@ -57,7 +57,8 @@ host system. If logging in through a graphical display manager, the user's <filename>.bash_profile</filename> is not normally used when a virtual terminal is started. In this case, add the export command to - the <filename>.bashrc</filename> file for the user and root. In addition, + the <filename>.bashrc</filename> file for the user and + <systemitem class="username">root</systemitem>. In addition, some distributions have instructions to not run the <filename>.bashrc</filename> instructions in a non-interactive bash invocation. Be sure to add the export command before the test for non-interactive use.</para> diff --git a/chapter02/stages.xml b/chapter02/stages.xml index 31a60166d..b15b9446e 100644 --- a/chapter02/stages.xml +++ b/chapter02/stages.xml @@ -25,9 +25,10 @@ <itemizedlist> <listitem> - <para>Procedures done as the root user after Section 2.4 need to - have the LFS environment variable set <emphasis>FOR THE ROOT - USER</emphasis>.</para> + <para>Procedures done as the + <systemitem class="username">root</systemitem> user after Section + 2.4 need to have the LFS environment variable set + <emphasis>FOR THE ROOT USER</emphasis>.</para> </listitem> </itemizedlist> </sect2> @@ -41,7 +42,8 @@ </listitem> <listitem> - <para>Threse two chapters must be done as user <emphasis>lfs</emphasis>. + <para>These two chapters <emphasis>must</emphasis> be done as user + <systemitem class="username">lfs</systemitem>. A <command>su - lfs</command> needs to be done before any task in these chapters. Failing to do that, you are at risk of installing packages to the host, and potentially rendering it unusable.</para> @@ -68,18 +70,22 @@ <listitem> <para>A few operations, from <quote>Changing Ownership</quote> to <quote>Entering the Chroot Environment</quote> must be done as the - root user, with the LFS environment variable set for the root user.</para> + <systemitem class="username">root</systemitem> user, with the LFS + environment variable set for the + <systemitem class="username">root</systemitem>user.</para> </listitem> <listitem> <para> When entering chroot, the LFS environment variable must be set - for root. The LFS variable is not used afterwards.</para> + for <systemitem class="username">root</systemitem>. The LFS + variable is not used afterwards.</para> </listitem> <listitem> <para> The virtual file systems must be mounted. This can be done before or after entering chroot by changing to a host virtual terminal - and, as root, running the commands in + and, as <systemitem class="username">root</systemitem>, running the + commands in <xref linkend='ch-tools-bindmount'/> and <xref linkend='ch-tools-kernfsmount'/>.</para> </listitem> |