mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-22 21:29:23 +01:00
Update to udev (systemd)-188
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9933 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
0840dab001
commit
d29a03b05b
@ -37,6 +37,16 @@
|
||||
|
||||
-->
|
||||
|
||||
<listitem>
|
||||
<para>2012-08-12</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[bdubbs] - Update to udev (systemd)-188. Fixes
|
||||
<ulink url="&lfs-ticket-root;3152">#3152</ulink>.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>2012-08-06</para>
|
||||
<itemizedlist>
|
||||
|
@ -54,6 +54,15 @@
|
||||
<para>Install the package:</para>
|
||||
|
||||
<screen><userinput remap="install">make -f udev-lfs-&systemd-version;/Makefile.lfs install</userinput></screen>
|
||||
|
||||
<para>Finally set up the persistent network udev rules. This task will be
|
||||
explained in detail in <xref linkend='stable-net-names'/>. Note that the
|
||||
<filename class='directory'>/sys</filename> and <filename
|
||||
class='directory'>/proc</filename> filesystems must be mounted in the
|
||||
chroot environment as explained at the beginning of this chapter for the
|
||||
following script to work.</para>
|
||||
|
||||
<screen><userinput remap="install">bash udev-lfs-&systemd-version;/init-net-rules.sh</userinput></screen>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="contents-udev" role="content">
|
||||
|
@ -23,7 +23,7 @@
|
||||
symlinks from all run-level directories (<filename
|
||||
class="directory">/etc/rc.d/rc*.d</filename>).</para>
|
||||
|
||||
<sect2>
|
||||
<sect2 id='stable-net-names'>
|
||||
<title>Creating stable names for network interfaces</title>
|
||||
|
||||
<para>If there is only one network interface in the system to be
|
||||
@ -41,18 +41,19 @@
|
||||
avoid this, Udev comes with a script and some rules to assign stable names
|
||||
to network cards based on their MAC address.</para>
|
||||
|
||||
<para>Pre-generate the rules to ensure the same names get assigned to the
|
||||
same devices at every boot, including the first:</para>
|
||||
|
||||
<screen><userinput>for NIC in /sys/class/net/* ; do
|
||||
INTERFACE=${NIC##*/} udevadm test --action=add $NIC
|
||||
done</userinput></screen>
|
||||
|
||||
<para>Now, inspect the <filename>/etc/udev/rules.d/70-persistent-net.rules</filename>
|
||||
file, to find out which name was assigned to which network device:</para>
|
||||
<para>The rules were pre-generated in the build instructions for
|
||||
<application>udev (systemd)</application> in the last chapter. Inspect the
|
||||
<filename>/etc/udev/rules.d/70-persistent-net.rules</filename> file, to
|
||||
find out which name was assigned to which network device:</para>
|
||||
|
||||
<screen role="nodump"><userinput>cat /etc/udev/rules.d/70-persistent-net.rules</userinput></screen>
|
||||
|
||||
<note><para>In some cases such as when MAC addresess have been assigned to
|
||||
a network card manually or in a virtual envirnment such as Xen,
|
||||
the network rules file may not have been generated because addresses
|
||||
are not consistently assigned. In these cases, just continue to
|
||||
the next section.</para></note>
|
||||
|
||||
<para>The file begins with a comment block followed by two lines for each
|
||||
NIC. The first line for each NIC is a commented description showing its
|
||||
hardware IDs (e.g. its PCI vendor and device IDs, if it's a PCI card),
|
||||
|
12
packages.ent
12
packages.ent
@ -524,10 +524,10 @@
|
||||
<!ENTITY texinfo-ch6-du "21 MB">
|
||||
<!ENTITY texinfo-ch6-sbu "0.3 SBU">
|
||||
|
||||
<!ENTITY systemd-version "187">
|
||||
<!ENTITY systemd-size "1,316 KB">
|
||||
<!ENTITY systemd-version "188">
|
||||
<!ENTITY systemd-size "1,324 KB">
|
||||
<!ENTITY systemd-url "http://www.freedesktop.org/software/systemd/systemd-&systemd-version;.tar.xz">
|
||||
<!ENTITY systemd-md5 "26606e3c84448800ef0b3ffd57e6e8b6">
|
||||
<!ENTITY systemd-md5 "d89b42699695554949d072ef46c0dfc9">
|
||||
<!ENTITY systemd-home "http://www.freedesktop.org/wiki/Software/systemd/">
|
||||
<!ENTITY systemd-ch6-du "17 MB">
|
||||
<!ENTITY systemd-ch6-sbu "0.1 SBU">
|
||||
@ -540,10 +540,10 @@
|
||||
<!ENTITY tzdata-ch6-du "5.6 MB">
|
||||
<!ENTITY tzdata-ch6-sbu "0.1 SBU">
|
||||
|
||||
<!ENTITY udev-lfs "udev-lfs-&systemd-version;-2">
|
||||
<!ENTITY udev-lfs-size "14 KB">
|
||||
<!ENTITY udev-lfs "udev-lfs-&systemd-version;">
|
||||
<!ENTITY udev-lfs-size "17 KB">
|
||||
<!ENTITY udev-lfs-url "&anduin-other;&udev-lfs;.tar.bz2">
|
||||
<!ENTITY udev-lfs-md5 "089ae18d3fe80d7c051531feeba51446">
|
||||
<!ENTITY udev-lfs-md5 "fcc1c0337a2b18f63dfeea6f8d0f5a21">
|
||||
<!ENTITY udev-lfs-home " ">
|
||||
|
||||
<!ENTITY util-linux-version "2.21.2">
|
||||
|
Loading…
Reference in New Issue
Block a user