bash-exp.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. <sect2>
  2. <title>Command explanations</title>
  3. <para><userinput>--enable-static-link:</userinput> This configure
  4. option causes Bash to be linked statically</para>
  5. <para><userinput>--prefix=$LFS/usr:</userinput> This configure option installs
  6. all of Bash's files under the $LFS/usr directory, which becomes the /usr
  7. directory after the user chroot'ed into $LFS or when he rebooted
  8. the system into LFS.</para>
  9. <para><userinput>--bindir=$LFS/bin:</userinput> This installs the executable
  10. files in $LFS/bin. We do this because we want bash to be in /bin, not in
  11. /usr/bin. One reason being: the /usr partition might be on a separate
  12. partition which has to be mounted at some point. Before that partition is
  13. mounted a user needs and will want to have bash available (it will be hard to
  14. execute the boot scripts without a shell for instance).</para>
  15. <para><userinput>ln -sf bash sh:</userinput> This command creates the sh
  16. symlink that points to bash. Most scripts run themselves via 'sh'
  17. (invoked by the #!/bin/sh as the first line in the scripts) which
  18. invokes a special bash mode. Bash will then behave (as closely as
  19. possible) as the original Bourne shell.</para>
  20. <para>The <userinput>&amp;&amp;</userinput>'s at the end of every line cause
  21. the next command to be executed only if the previous command exists
  22. with a return value of 0 indicating success. In case all of these
  23. commands are copy&amp;pasted
  24. on the shell, is is important to be ensured that if
  25. ./configure fails, make isn't being executed and, likewise, if make fails,
  26. that make install isn't being executed, and so forth.</para>
  27. </sect2>