Ignore:
Timestamp:
01/12/2020 08:03:38 AM (4 years ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib-10.1
Children:
f8ea68b
Parents:
3a41eec
Message:

Drop patching file

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11723 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter09/theend.xml

    r3a41eec r6077ed49  
    1919  </indexterm>
    2020
    21   <indexterm zone="ch-finish-theend" revision="systemd">
     21  <indexterm zone="ch-finish-theend">
    2222    <primary sortas="e-/etc/os-release">/etc/os-release</primary>
    2323  </indexterm>
     
    2626  success with your shiny new custom-built Linux system.</para>
    2727
    28   <para revision="systemd">Create an <filename>/etc/os-release</filename>
    29         file required by systemd:</para>
     28  <para>It may be a good idea to create an
     29  <filename>/etc/lfs-release</filename> file. By having this file, it is very
     30  easy for you (and for us if you need to ask for help at some point) to find
     31  out which LFS version is installed on the system. Create this file by
     32  running:</para>
    3033
    31 <screen arch="default" revision="systemd"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
     34<screen revision="sysv"><userinput>echo &version; &gt; /etc/lfs-release</userinput></screen>
     35
     36<screen revision="systemd"><userinput>echo &versiond; &gt; /etc/lfs-release</userinput></screen>
     37
     38  <para>Two files describing the installed system may be used by packages
     39  that will be installed on the system, either in binary form or by building
     40  them.</para>
     41
     42  <para>The first one shows the status of your
     43  new system with respect to the Linux Standards Base (LSB).  To create
     44  this file, run:</para>
     45
     46<screen revision="sysv"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
     47DISTRIB_ID="Linux From Scratch"
     48DISTRIB_RELEASE="&version;"
     49DISTRIB_CODENAME="&lt;your name here&gt;"
     50DISTRIB_DESCRIPTION="Linux From Scratch"
     51EOF</userinput></screen>
     52
     53<screen revision="systemd"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
     54DISTRIB_ID="Linux From Scratch"
     55DISTRIB_RELEASE="&versiond;"
     56DISTRIB_CODENAME="&lt;your name here&gt;"
     57DISTRIB_DESCRIPTION="Linux From Scratch"
     58EOF</userinput></screen>
     59
     60  <para>The second one contains roughly the same information, and is used
     61  by systemd and some graphical desktop environments.  To create
     62  this file, run:</para>
     63
     64<screen revision="sysv"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
     65NAME="Linux From Scratch"
     66VERSION="&version;"
     67ID=lfs
     68PRETTY_NAME="Linux From Scratch &version;"
     69VERSION_CODENAME="&lt;your name here&gt;"
     70EOF</userinput></screen>
     71
     72<screen revision="systemd"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
    3273NAME="Linux From Scratch"
    3374VERSION="&versiond;"
     
    3778EOF</userinput></screen>
    3879
    39 <screen arch="ml_32,ml_x32,ml_all" revision="systemd"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
    40 NAME="Linux From Scratch"
    41 VERSION="&versiond;"
    42 ID=lfs
    43 PRETTY_NAME="Linux From Scratch &versiond; Multlib"
    44 VERSION_CODENAME="&lt;your name here&gt;"
    45 EOF</userinput></screen>
    46 
    47   <para revision="sysv">It may be a good idea to create an
    48   <filename>/etc/lfs-release</filename> file. By having this file, it is very
    49   easy for you (and for us if you need to ask for help at some point) to find
    50   out which LFS version is installed on the system. Create this file by
    51   running:</para>
    52 
    53 <screen arch="default" revision="sysv"><userinput>echo &version; &gt; /etc/lfs-release</userinput></screen>
    54 <screen arch="ml_32,ml_x32,ml_all" revision="sysv"><userinput>echo &version;-multilib &gt; /etc/lfs-release</userinput></screen>
    55 
    56   <para revision="systemd">Creating the file
    57   <filename>/etc/lfs-release</filename> is recommended for compatibility with
    58   the non-systemd branch. By having this file, it is very easy for you (and for
    59   us if you need to ask for help at some point) to find out which LFS version
    60   is installed on the system. Create this file by running:</para>
    61 
    62 <screen revision="systemd"><userinput>echo &versiond; &gt; /etc/lfs-release</userinput></screen>
    63 
    64   <para>It is also a good idea to create a file to show the status of your
    65   new system with respect to the Linux Standards Base (LSB).  To create
    66   this file, run:</para>
    67 
    68 <screen arch="default" revision="sysv"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
    69 DISTRIB_ID="Linux From Scratch"
    70 DISTRIB_RELEASE="&version;"
    71 DISTRIB_CODENAME="&lt;your name here&gt;"
    72 DISTRIB_DESCRIPTION="Linux From Scratch"
    73 EOF</userinput></screen>
    74 
    75 <screen arch="default" revision="systemd"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
    76 DISTRIB_ID="Linux From Scratch"
    77 DISTRIB_RELEASE="&versiond;"
    78 DISTRIB_CODENAME="&lt;your name here&gt;"
    79 DISTRIB_DESCRIPTION="Linux From Scratch"
    80 EOF</userinput></screen>
    81 
    82 <screen arch="ml_32,ml_x32,ml_all" revision="sysv"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
    83 DISTRIB_ID="Linux From Scratch"
    84 DISTRIB_RELEASE="&version;-multilib"
    85 DISTRIB_CODENAME="&lt;your name here&gt;"
    86 DISTRIB_DESCRIPTION="Linux From Scratch"
    87 EOF</userinput></screen>
    88 
    89 <screen arch="ml_32,ml_x32,ml_all" revision="systemd"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
    90 DISTRIB_ID="Linux From Scratch"
    91 DISTRIB_RELEASE="&versiond;-multilib"
    92 DISTRIB_CODENAME="&lt;your name here&gt;"
    93 DISTRIB_DESCRIPTION="Linux From Scratch"
    94 EOF</userinput></screen>
    95 
    96   <para>Be sure to put some sort of customization for the field
    97   'DISTRIB_CODENAME' to make the system uniquely yours.</para>
     80  <para>Be sure to put some sort of customization for the fields
     81  'DISTRIB_CODENAME' and 'VERSION_CODENAME' to make the system uniquely
     82  yours.</para>
    9883
    9984</sect1>
Note: See TracChangeset for help on using the changeset viewer.