theend.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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/os-release">/etc/os-release</primary>
  12. </indexterm>
  13. <para>Well done! The new LFS system is installed! We wish you much
  14. success with your shiny new custom-built Linux system.</para>
  15. <para>Create an <filename>/etc/os-release</filename> file required by
  16. Systemd:</para>
  17. <screen><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
  18. NAME="Linux From Scratch"
  19. VERSION="&version;"
  20. ID=lfs
  21. PRETTY_NAME="Linux From Scratch &version;"
  22. EOF</userinput></screen>
  23. <para>It is recommended to create <filename>/etc/lfs-release</filename>
  24. for compatibility with non Systemd branch. By having this file, it is very
  25. easy for you (and for us if you need to ask for help at some point) to find
  26. out which LFS version is installed on the system. Create this file by
  27. running:</para>
  28. <screen><userinput>echo &version; &gt; /etc/lfs-release</userinput></screen>
  29. <para>It is also a good idea to create a file to show the status of your
  30. new system with respect to the Linux Standards Base (LSB). To create
  31. this file, run:</para>
  32. <screen><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
  33. DISTRIB_ID="Linux From Scratch"
  34. DISTRIB_RELEASE="&version;"
  35. DISTRIB_CODENAME="&lt;your name here&gt;"
  36. DISTRIB_DESCRIPTION="Linux From Scratch"
  37. EOF</userinput></screen>
  38. <para>Be sure to put some sort of customization for the field
  39. 'DISTRIB_CODENAME' to make the system uniquely yours.</para>
  40. </sect1>