diff options
-rw-r--r-- | chapter01/changelog.xml | 22 | ||||
-rw-r--r-- | chapter07/networkd.xml | 74 | ||||
-rw-r--r-- | chapter07/systemd-custom.xml | 41 | ||||
-rw-r--r-- | packages.ent | 6 |
4 files changed, 128 insertions, 15 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 7e3fe1655..1d7081eda 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -46,6 +46,28 @@ <para>2017-12-22</para> <itemizedlist> <listitem> + <para>[bdubbs] - Update to linux-4.14.8. Fixes + <ulink url="&lfs-ticket-root;4177">#4177</ulink>.</para> + </listitem> + <listitem revision="systemd"> + <para>[bdubbs] - Add discussion of ethernet device names. Fixes + <ulink url="&lfs-ticket-root;4180">#4180</ulink>.</para> + </listitem> + <listitem revision="systemd"> + <para>[bdubbs] - Add discussion of audo file deletion. Fixes + <ulink url="&lfs-ticket-root;4181">#4181</ulink>.</para> + </listitem> + <listitem revision="systemd"> + <para>[bdubbs] - Add discussion of separate /tmp. Fixes + <ulink url="&lfs-ticket-root;4182">#4182</ulink>.</para> + </listitem> + </itemizedlist> + </listitem> + + <listitem> + <para>2017-12-22</para> + <itemizedlist> + <listitem> <para>[dj] - Update to util-linux-2.31.1. Fixes <ulink url="&lfs-ticket-root;4176">#4176</ulink>.</para> </listitem> diff --git a/chapter07/networkd.xml b/chapter07/networkd.xml index 54119f03e..b446986fa 100644 --- a/chapter07/networkd.xml +++ b/chapter07/networkd.xml @@ -43,11 +43,67 @@ <filename>systemd-netdev(5)</filename> and <filename>systemd-network(5)</filename> manual pages.</para> - <note><para>Udev may assign network card interface names based - on system physical characteristics such as enp2s1. If you are - not sure what your interface name is, you can always run - <command>ip link</command> after you have booted your system. - </para></note> + <sect3 id="systemd-network-devices"> + <title>Network Device Naming</title> + + <para> + Udev normally assigns network card interface names based + on system physical characteristics such as enp2s1. If you are + not sure what your interface name is, you can always run + <command>ip link</command> after you have booted your system. + </para> + + <para> + For most systems, there is only one network interface for + each type of connection. For example, the classic interface + name for a wired connection is eth0. A wireless connection + will usually have the name wifi0 or wlan0. + </para> + + <para> + If you prefer to use the classic or customized network interface names, + there are three alternative ways to do that:</para> + + <itemizedlist> + <listitem> + <para> + Mask udev's .link file for the default policy: +<screen role="nodump"><userinput>ln -s /dev/null /etc/systemd/network/99-default.link</userinput></screen> + </para> + </listitem> + + <listitem> + <para> + Create a manual naming scheme, for example by naming the + interfaces something like "internet0", "dmz0", or "lan0". + For that, create .link + files in /etc/systemd/network/, that choose an explicit name or a + better naming scheme for one, some, or all of your interfaces. + For example: + </para> + +<screen role="nodump"><userinput>cat > /etc/systemd/network/10-ether0.link << "EOF" +<literal>[Match] +# Change the MAC address as appropriate for your network device +MACAddress=12:34:45:78:90:AB + +[Link] +Name=ether0</literal> +EOF</userinput></screen> + + <para> + See the man page systemd.link(5) for more information. + </para> + </listitem> + + <listitem> + <para> + In /boot/grub/grub.cfg, pass the option net.ifnames=0 on the + kernel command line. + </para> + </listitem> + </itemizedlist> + </sect3> <sect3 id="systemd-networkd-static"> <title>Static IP Configuration</title> @@ -56,9 +112,9 @@ Static IP setup (using both systemd-networkd and systemd-resolved):</para> -<screen><userinput>cat > /etc/systemd/network/10-eth0-static.network << "EOF" +<screen><userinput>cat > /etc/systemd/network/10-eth-static.network << "EOF" <literal>[Match] -Name=eth0 +Name=<network-device-name> [Network] Address=192.168.0.2/24 @@ -79,9 +135,9 @@ EOF</userinput></screen> <para>The command below creates a basic configuration file for an IPv4 DHCP setup:</para> -<screen role="nodump"><userinput>cat > /etc/systemd/network/10-eth0-dhcp.network << "EOF" +<screen role="nodump"><userinput>cat > /etc/systemd/network/10-eth-dhcp.network << "EOF" <literal>[Match] -Name=eth0 +Name=<network-device-name> [Network] DHCP=ipv4 diff --git a/chapter07/systemd-custom.xml b/chapter07/systemd-custom.xml index bd1119840..31f518ff2 100644 --- a/chapter07/systemd-custom.xml +++ b/chapter07/systemd-custom.xml @@ -53,9 +53,18 @@ EOF</userinput></screen> <screen role="nodump"><userinput>ln -sfv /dev/null /etc/systemd/system/tmp.mount</userinput></screen> - <para>This is not necessary if there is a separate partition for - <filename class="directory">/tmp</filename> specified in - <filename>/etc/fstab</filename>.</para> + <para>Alternatively, if a a separate partition for + <filename class="directory">/tmp</filename> is desired, specify that + partition in an <filename>/etc/fstab</filename> entry.</para> + + <warning> + <para> + Do not create the symbolic link above if a separate partition is used + for <filename class="directory">/tmp</filename>. This will prvent the + root file system (/) from being remounted r/w and make the system + unusable when booted. + </para> + </warning> </sect2> @@ -81,6 +90,32 @@ EOF</userinput></screen> <filename>tmpfiles.d(5)</filename> manual page for file format details.</para> + <para> + Note that the syntax for the + <filename>/usr/lib/tmpfiles.d/*.conf</filename> files can be + confusing. For example, the default deletion of files in the /tmp directory + is located in <filename>/usr/lib/tmpfiles.d/tmp.conf</filename> with + the line: + +<screen role="nodump">q /tmp 1777 root root 10d</screen> + + The type field, q, discusses creating a subvolume with quotas which + is really only applicable to btrfs filesystems. It references type v + which in turn references type d (directory). This then creates the + specified directory if is is not present and adjusts the permissions + and ownership as specified. Contents of the directory will be + subject to time based cleanup if the age argument is specified. + </para> + + <para> + If the default parameters are not desired, then the file should + be copied to <filename class="directory">/etc/tmpfiles.d</filename> + and edited as desired. For example: + +<screen role="nodump"><userinput>mkdir -p /etc/tempfiles.d +cp /usr/lib/tmpfiles.d/tmp.conf /etc/tempfiles.d</userinput></screen> + </para> + </sect2> <sect2> diff --git a/packages.ent b/packages.ent index 9ad7fc64c..3d03100d5 100644 --- a/packages.ent +++ b/packages.ent @@ -408,12 +408,12 @@ <!ENTITY linux-major-version "4"> <!ENTITY linux-minor-version "14"> -<!ENTITY linux-patch-version "6"> +<!ENTITY linux-patch-version "8"> <!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">i--> <!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;"> -<!ENTITY linux-size "98,421 KB"> +<!ENTITY linux-size "98,429 KB"> <!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz"> -<!ENTITY linux-md5 "938baaf8fd3d232e9fbc2f402adf0d3f"> +<!ENTITY linux-md5 "0a2120cc58fe9ff0cbb7330dd1acb82e"> <!ENTITY linux-home "http://www.kernel.org/"> <!-- measured for 4.8.3 / gcc-6.2.0 on x86_64 : minimum is allnoconfig extended for a hopefully-bootable build on desktop machine, |