theend.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-finish-theend">
  8. <?dbhtml filename="theend.html"?>
  9. <title>The End</title>
  10. <indexterm zone="ch-finish-theend">
  11. <primary sortas="e-/etc/lfs-release">/etc/lfs-release</primary>
  12. </indexterm>
  13. <indexterm zone="ch-finish-theend">
  14. <primary sortas="e-/etc/lsb-release">/etc/lsb-release</primary>
  15. </indexterm>
  16. <indexterm zone="ch-finish-theend">
  17. <primary sortas="e-/etc/os-release">/etc/os-release</primary>
  18. </indexterm>
  19. <para>Well done! The new LFS system is installed! We wish you much
  20. success with your shiny new custom-built Linux system.</para>
  21. <para>It may be a good idea to create an
  22. <filename>/etc/lfs-release</filename> file. By having this file, it is very
  23. easy for you (and for us if you need to ask for help at some point) to find
  24. out which LFS version is installed on the system. Create this file by
  25. running:</para>
  26. <screen revision="sysv"><userinput>echo &version; &gt; /etc/lfs-release</userinput></screen>
  27. <screen revision="systemd"><userinput>echo &versiond; &gt; /etc/lfs-release</userinput></screen>
  28. <para>Two files describing the installed system may be used by packages
  29. that can be installed on the system later, either in binary form or by building
  30. them.</para>
  31. <para>The first one shows the status of your
  32. new system with respect to the Linux Standards Base (LSB). To create
  33. this file, run:</para>
  34. <screen revision="sysv"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
  35. DISTRIB_ID="Linux From Scratch"
  36. DISTRIB_RELEASE="&version;"
  37. DISTRIB_CODENAME="&lt;your name here&gt;"
  38. DISTRIB_DESCRIPTION="Linux From Scratch"
  39. EOF</userinput></screen>
  40. <screen revision="systemd"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
  41. DISTRIB_ID="Linux From Scratch"
  42. DISTRIB_RELEASE="&versiond;"
  43. DISTRIB_CODENAME="&lt;your name here&gt;"
  44. DISTRIB_DESCRIPTION="Linux From Scratch"
  45. EOF</userinput></screen>
  46. <para>The second one contains roughly the same information, and is used
  47. by systemd and some graphical desktop environments. To create
  48. this file, run:</para>
  49. <screen revision="sysv"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
  50. NAME="Linux From Scratch"
  51. VERSION="&version;"
  52. ID=lfs
  53. PRETTY_NAME="Linux From Scratch &version;"
  54. VERSION_CODENAME="&lt;your name here&gt;"
  55. EOF</userinput></screen>
  56. <screen revision="systemd"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
  57. NAME="Linux From Scratch"
  58. VERSION="&versiond;"
  59. ID=lfs
  60. PRETTY_NAME="Linux From Scratch &versiond;"
  61. VERSION_CODENAME="&lt;your name here&gt;"
  62. EOF</userinput></screen>
  63. <para>Be sure to put some sort of customization for the fields
  64. 'DISTRIB_CODENAME' and 'VERSION_CODENAME' to make the system uniquely
  65. yours.</para>
  66. </sect1>