theend.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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" revision="systemd">
  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 revision="systemd">Create an <filename>/etc/os-release</filename>
  22. file required by systemd:</para>
  23. <screen arch="default" revision="systemd"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
  24. NAME="Linux From Scratch"
  25. VERSION="&versiond;"
  26. ID=lfs
  27. PRETTY_NAME="Linux From Scratch &versiond;"
  28. VERSION_CODENAME="&lt;your name here&gt;"
  29. EOF</userinput></screen>
  30. <screen arch="ml_32,ml_x32,ml_all" revision="systemd"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
  31. NAME="Linux From Scratch"
  32. VERSION="&versiond;"
  33. ID=lfs
  34. PRETTY_NAME="Linux From Scratch &versiond; Multlib"
  35. VERSION_CODENAME="&lt;your name here&gt;"
  36. EOF</userinput></screen>
  37. <para revision="sysv">It may be a good idea to create an
  38. <filename>/etc/lfs-release</filename> file. By having this file, it is very
  39. easy for you (and for us if you need to ask for help at some point) to find
  40. out which LFS version is installed on the system. Create this file by
  41. running:</para>
  42. <screen arch="default" revision="sysv"><userinput>echo &version; &gt; /etc/lfs-release</userinput></screen>
  43. <screen arch="ml_32,ml_x32,ml_all" revision="sysv"><userinput>echo &version;-multilib &gt; /etc/lfs-release</userinput></screen>
  44. <para revision="systemd">Creating the file
  45. <filename>/etc/lfs-release</filename> is recommended for compatibility with
  46. the non-systemd branch. By having this file, it is very easy for you (and for
  47. us if you need to ask for help at some point) to find out which LFS version
  48. is installed on the system. Create this file by running:</para>
  49. <screen revision="systemd"><userinput>echo &versiond; &gt; /etc/lfs-release</userinput></screen>
  50. <para>It is also a good idea to create a file to show the status of your
  51. new system with respect to the Linux Standards Base (LSB). To create
  52. this file, run:</para>
  53. <screen arch="default" revision="sysv"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
  54. DISTRIB_ID="Linux From Scratch"
  55. DISTRIB_RELEASE="&version;"
  56. DISTRIB_CODENAME="&lt;your name here&gt;"
  57. DISTRIB_DESCRIPTION="Linux From Scratch"
  58. EOF</userinput></screen>
  59. <screen arch="default" revision="systemd"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
  60. DISTRIB_ID="Linux From Scratch"
  61. DISTRIB_RELEASE="&versiond;"
  62. DISTRIB_CODENAME="&lt;your name here&gt;"
  63. DISTRIB_DESCRIPTION="Linux From Scratch"
  64. EOF</userinput></screen>
  65. <screen arch="ml_32,ml_x32,ml_all" revision="sysv"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
  66. DISTRIB_ID="Linux From Scratch"
  67. DISTRIB_RELEASE="&version;-multilib"
  68. DISTRIB_CODENAME="&lt;your name here&gt;"
  69. DISTRIB_DESCRIPTION="Linux From Scratch"
  70. EOF</userinput></screen>
  71. <screen arch="ml_32,ml_x32,ml_all" revision="systemd"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
  72. DISTRIB_ID="Linux From Scratch"
  73. DISTRIB_RELEASE="&versiond;-multilib"
  74. DISTRIB_CODENAME="&lt;your name here&gt;"
  75. DISTRIB_DESCRIPTION="Linux From Scratch"
  76. EOF</userinput></screen>
  77. <para>Be sure to put some sort of customization for the field
  78. 'DISTRIB_CODENAME' to make the system uniquely yours.</para>
  79. </sect1>