Remove all versiond entities

This commit is contained in:
Pierre Labastie
2021-09-01 11:13:32 +02:00
parent 4467b18d3f
commit 784fdaed25
7 changed files with 16 additions and 48 deletions

View File

@@ -31,50 +31,33 @@
out which LFS version is installed on the system. Create this file by
running:</para>
<screen revision="sysv"><userinput>echo &version; &gt; /etc/lfs-release</userinput></screen>
<screen><userinput>echo &version; &gt; /etc/lfs-release</userinput></screen>
<screen revision="systemd"><userinput>echo &versiond; &gt; /etc/lfs-release</userinput></screen>
<para>Two files describing the installed system may be used by packages
that can be installed on the system later, either in binary form or by building
<para>Two files describing the installed system may be used by packages that
can be installed on the system later, either in binary form or by building
them.</para>
<para>The first one shows the status of your
new system with respect to the Linux Standards Base (LSB). To create
this file, run:</para>
<screen revision="sysv"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
<screen><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
DISTRIB_ID="Linux From Scratch"
DISTRIB_RELEASE="&version;"
DISTRIB_CODENAME="&lt;your name here&gt;"
DISTRIB_DESCRIPTION="Linux From Scratch"
EOF</userinput></screen>
<screen revision="systemd"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
DISTRIB_ID="Linux From Scratch"
DISTRIB_RELEASE="&versiond;"
DISTRIB_CODENAME="&lt;your name here&gt;"
DISTRIB_DESCRIPTION="Linux From Scratch"
EOF</userinput></screen>
<para>The second one contains roughly the same information, and is used
by systemd and some graphical desktop environments. To create
this file, run:</para>
<screen revision="sysv"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
<screen><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
NAME="Linux From Scratch"
VERSION="&version;"
ID=lfs
PRETTY_NAME="Linux From Scratch &version;"
VERSION_CODENAME="&lt;your name here&gt;"
EOF</userinput></screen>
<screen revision="systemd"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
NAME="Linux From Scratch"
VERSION="&versiond;"
ID=lfs
PRETTY_NAME="Linux From Scratch &versiond;"
VERSION_CODENAME="&lt;your name here&gt;"
EOF</userinput></screen>
<para>Be sure to put some sort of customization for the fields