aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas R. Reno <renodr@linuxfromscratch.org>2019-08-03 20:25:53 +0000
committerDouglas R. Reno <renodr@linuxfromscratch.org>2019-08-03 20:25:53 +0000
commit70dcd88270ee39a1d68916ee07af97312ac86cea (patch)
tree767e7bd67557f6d35b3ca798937bcd772ddbd119
parent4e32649dfe4b328c6dd38e91e825d49418319fe4 (diff)
Add systemd patch to fix networkd under 5.2+ kernels, as well as issues with RDRAND on AMD Ryzen CPUs
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11648 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter01/changelog.xml5
-rw-r--r--chapter03/patches.xml10
-rw-r--r--chapter06/systemd.xml5
-rw-r--r--general.ent2
-rw-r--r--patches.ent10
5 files changed, 21 insertions, 11 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index c875fdf15..5c2e6ee0f 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -46,6 +46,11 @@
<listitem>
<para>2019-08-03</para>
<itemizedlist>
+ <listitem revision="systemd">
+ <para>[renodr] - Add a patch to systemd to fix issues with
+ networkd on kernel versions 5.2+, and to fix issues with AMD Ryzen
+ CPUs. Fixes <ulink url="&lfs-ticket-root;4506">#4506</ulink>.</para>
+ </listitem>
<listitem>
<para>[bdubbs] - Update to linux-5.2.5. Fixes
<ulink url="&lfs-ticket-root;4505">#4505</ulink>.</para>
diff --git a/chapter03/patches.xml b/chapter03/patches.xml
index 23e9eb633..105b4139e 100644
--- a/chapter03/patches.xml
+++ b/chapter03/patches.xml
@@ -116,15 +116,15 @@
<para>MD5 sum: <literal>&sysvinit-consolidated-patch-md5;</literal></para>
</listitem>
</varlistentry>
-<!--
+
<varlistentry revision="systemd">
- <term>Systemd security patch - <token>&systemd-security-patch-size;</token>:</term>
+ <term>Systemd networkd and rdrand patch - <token>&systemd-networkd-patch-size;</token>:</term>
<listitem>
- <para>Download: <ulink url="&patches-root;&systemd-security-patch;"/></para>
- <para>MD5 sum: <literal>&systemd-security-patch-md5;</literal></para>
+ <para>Download: <ulink url="&patches-root;&systemd-networkd-patch;"/></para>
+ <para>MD5 sum: <literal>&systemd-networkd-patch-md5;</literal></para>
</listitem>
</varlistentry>
--->
+
</variablelist>
<para>Total size of these patches: about <returnvalue/></para>
diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml
index 9c9099e39..9ba24ded5 100644
--- a/chapter06/systemd.xml
+++ b/chapter06/systemd.xml
@@ -40,6 +40,11 @@
<sect2 role="installation">
<title>Installation of systemd</title>
+ <para>First, apply a patch to fix issues with systemd-networkd on Linux 5.2+
+ kernels, as well as with AMD Ryzen CPUs:</para>
+
+<screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-networkd_and_rdrand_fixes-1.patch</userinput></screen>
+
<para>Create a symlink to work around missing xsltproc:</para>
<screen><userinput remap="pre">ln -sf /tools/bin/true /usr/bin/xsltproc</userinput></screen>
diff --git a/general.ent b/general.ent
index 65e656a08..ae7cfb48c 100644
--- a/general.ent
+++ b/general.ent
@@ -3,7 +3,7 @@
Change to x.y for release but not -rc releases -->
<!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" -->
-<!ENTITY versiond "20190903-systemd">
+<!ENTITY versiond "20190803-systemd">
<!ENTITY short-versiond "systemd">
<!ENTITY generic-versiond "systemd">
diff --git a/patches.ent b/patches.ent
index 39c19cd43..ea376aa2f 100644
--- a/patches.ent
+++ b/patches.ent
@@ -56,8 +56,8 @@
<!ENTITY sysvinit-consolidated-patch "sysvinit-&sysvinit-version;-consolidated-1.patch">
<!ENTITY sysvinit-consolidated-patch-md5 "4900322141d493e74020c9cf437b2cdc">
<!ENTITY sysvinit-consolidated-patch-size "2.4 KB">
-<!--
-<!ENTITY systemd-security-patch "systemd-&systemd-version;-security_fixes-2.patch">
-<!ENTITY systemd-security-patch-md5 "10abebce8ff5d9fd402623ace39b5ab8">
-<!ENTITY systemd-security-patch-size "14 KB">
--->
+
+<!ENTITY systemd-networkd-patch "systemd-&systemd-version;-networkd_and_rdrand_fixes-1.patch">
+<!ENTITY systemd-networkd-patch-md5 "bb26f26d7c3a17d1888ab3171366906b">
+<!ENTITY systemd-networkd-patch-size "8 KB">
+