diff options
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/bash-inst.xml | 3 | ||||
-rw-r--r-- | chapter06/chroot.xml | 5 | ||||
-rw-r--r-- | chapter06/pwdgroup.xml | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/chapter06/bash-inst.xml b/chapter06/bash-inst.xml index 4f0647c34..82d10408a 100644 --- a/chapter06/bash-inst.xml +++ b/chapter06/bash-inst.xml @@ -29,7 +29,6 @@ following command will do so:</para> <para>And reload the newly compiled <userinput>bash</userinput> program:</para> -<para><screen><userinput>exec /bin/bash --login -set +h</userinput></screen></para> +<para><screen><userinput>exec /bin/bash +h --login</userinput></screen></para> </sect2> diff --git a/chapter06/chroot.xml b/chapter06/chroot.xml index 195242c35..2259dc7a4 100644 --- a/chapter06/chroot.xml +++ b/chapter06/chroot.xml @@ -26,6 +26,11 @@ to the same value as outside chroot; this variable is needed for programs like vim and less to operate properly. If you need other variables present, such as CFLAGS or CXXFLAGS, this is a good place to set them again.</para> +<para>Also note the use of the set +h directive. This tells bash to not use +it's internal path hashing. Without this directive, bash will remember paths +to binaries. Since as we go thru chapter 6, we want to use our newly compiled +binaries as soon as they are installed, we turn off this function.</para> + <para>From this point on there's no need to use the LFS variable anymore, because everything you do will be restricted to the LFS file system -- since what the shell thinks is <filename class="directory">/</filename> is actually diff --git a/chapter06/pwdgroup.xml b/chapter06/pwdgroup.xml index 15d00e6b7..049d28d60 100644 --- a/chapter06/pwdgroup.xml +++ b/chapter06/pwdgroup.xml @@ -51,8 +51,7 @@ resolution will start working immediately after the created, because we installed a full glibc in Chapter 5. This will get rid of the <quote>I have no name!</quote> prompt.</para> -<para><screen><userinput>exec /tools/bin/bash --login -set +h</userinput></screen></para> +<para><screen><userinput>exec /tools/bin/bash +h --login </userinput></screen></para> </sect1> |