Ignore:
Timestamp:
01/09/2020 09:02:55 AM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
ae5423f
Parents:
7e42b39
Message:

Add /etc/os-release to SysV,
and reword instructions in "The End"

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11721 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter09/theend.xml

    r7e42b39 r6a57b4c  
    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>
    30 
    31 <screen revision="systemd"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
    32 NAME="Linux From Scratch"
    33 VERSION="&versiond;"
    34 ID=lfs
    35 PRETTY_NAME="Linux From Scratch &versiond;"
    36 VERSION_CODENAME="&lt;your name here&gt;"
    37 EOF</userinput></screen>
    38 
    39   <para revision="sysv">It may be a good idea to create an
     28  <para>It may be a good idea to create an
    4029  <filename>/etc/lfs-release</filename> file. By having this file, it is very
    4130  easy for you (and for us if you need to ask for help at some point) to find
     
    4534<screen revision="sysv"><userinput>echo &version; &gt; /etc/lfs-release</userinput></screen>
    4635
    47   <para revision="systemd">Creating the file
    48   <filename>/etc/lfs-release</filename> is recommended for compatibility with
    49   the non-systemd branch. By having this file, it is very easy for you (and for
    50   us if you need to ask for help at some point) to find out which LFS version
    51   is installed on the system. Create this file by running:</para>
    52 
    5336<screen revision="systemd"><userinput>echo &versiond; &gt; /etc/lfs-release</userinput></screen>
    5437
    55   <para>It is also a good idea to create a file to show the status of your
     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
    5643  new system with respect to the Linux Standards Base (LSB).  To create
    5744  this file, run:</para>
     
    7158EOF</userinput></screen>
    7259
    73   <para>Be sure to put some sort of customization for the field
    74   'DISTRIB_CODENAME' to make the system uniquely yours.</para>
     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"
     73NAME="Linux From Scratch"
     74VERSION="&versiond;"
     75ID=lfs
     76PRETTY_NAME="Linux From Scratch &versiond;"
     77VERSION_CODENAME="&lt;your name here&gt;"
     78EOF</userinput></screen>
     79
     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>
    7583
    7684</sect1>
Note: See TracChangeset for help on using the changeset viewer.