diff options
Diffstat (limited to 'chapter07')
-rw-r--r-- | chapter07/chroot.xml | 7 | ||||
-rw-r--r-- | chapter07/createfiles.xml | 9 |
2 files changed, 3 insertions, 13 deletions
diff --git a/chapter07/chroot.xml b/chapter07/chroot.xml index d018cb218..6404c0625 100644 --- a/chapter07/chroot.xml +++ b/chapter07/chroot.xml @@ -23,7 +23,7 @@ TERM="$TERM" \ PS1='(lfs chroot) \u:\w\$ ' \ PATH=/usr/bin:/usr/sbin \ - /bin/bash --login +h</userinput></screen> + /bin/bash --login</userinput></screen> <para>The <parameter>-i</parameter> option given to the <command>env</command> command will clear all variables of the chroot environment. After that, only @@ -44,10 +44,7 @@ <para>Notice that <filename class="directory">/tools/bin</filename> is not in the <envar>PATH</envar>. This means that the cross toolchain will no longer be - used in the chroot environment. This occurs when the shell does not - <quote>remember</quote> the locations of executed binaries—for this - reason, hashing is switched off by passing the <parameter>+h</parameter> option - to <command>bash</command>.</para> + used in the chroot environment.</para> <para>Note that the <command>bash</command> prompt will say <computeroutput>I have no name!</computeroutput> This is normal because the diff --git a/chapter07/createfiles.xml b/chapter07/createfiles.xml index 9c4f6ac54..009806b3f 100644 --- a/chapter07/createfiles.xml +++ b/chapter07/createfiles.xml @@ -184,14 +184,7 @@ install -o tester -d /home/tester</userinput></screen> files have been created, user name and group name resolution will now work:</para> -<screen role="nodump"><userinput>exec /usr/bin/bash --login +h</userinput></screen> - - <para>Note the use of the <parameter>+h</parameter> directive. This tells - <command>bash</command> not to use its internal path hashing. Without this - directive, <command>bash</command> would remember the paths to binaries it has - executed. To ensure the use of the newly compiled binaries as soon as they are - installed, the <parameter>+h</parameter> directive will be used for the duration - of this and the next chapter.</para> +<screen role="nodump"><userinput>exec /usr/bin/bash --login</userinput></screen> <para>The <command>login</command>, <command>agetty</command>, and <command>init</command> programs (and others) use a number of log |