Hi,
In order to use jhalfs with systemd, I'd like to propose a few changes
to the systemd "General Network Configuration" page. Note that it
shouldn't change the rendering of the page (apart from a typo fix), but
it would allow to generate a script which would install a static network
with static DNS. I attach a patch (generated with svn diff, so -p0).
Index: chapter07/networkd.xml
===================================================================
--- chapter07/networkd.xml (révision 11200)
+++ chapter07/networkd.xml (copie de travail)
@@ -56,7 +56,7 @@
Static IP setup (using both systemd-networkd and
systemd-resolved):</para>
-<screen role="nodump"><userinput>cat > /etc/systemd/network/10-eth0-static.network << "EOF"
+<screen><userinput>cat > /etc/systemd/network/10-eth0-static.network << "EOF"
<literal>[Match]
Name=eth0
@@ -108,7 +108,7 @@
from the ISP or network administrator, into
<filename>/etc/resolv.conf</filename>.</para>
- <sect3 id="resolv-conf-systemd-resoloved">
+ <sect3 id="resolv-conf-systemd-resolved">
<title>systemd-resolved Configuration</title>
<note><para>If using another means to configure your network
@@ -121,9 +121,9 @@
<para>When using <command>systemd-resolved</command> for DNS
configuration, it creates the file
<filename>/run/systemd/resolve/resolv.conf</filename>. Create a
- symlink in <filename>/etc</filename> to use the generatd file:</para>
+ symlink in <filename>/etc</filename> to use the generated file:</para>
-<screen><userinput remap="install">ln -sfv /run/systemd/resolve/resolv.conf /etc/resolv.conf</userinput></screen>
+<screen><userinput>ln -sfv /run/systemd/resolve/resolv.conf /etc/resolv.conf</userinput></screen>
</sect3>
@@ -234,7 +234,7 @@
is not going to be configured, create the <filename>/etc/hosts</filename>
file by running the following command:</para>
-<screen><userinput>cat > /etc/hosts << "EOF"
+<screen role="nodump"><userinput>cat > /etc/hosts << "EOF"
<literal># Begin /etc/hosts
127.0.0.1 <replaceable><HOSTNAME.example.org></replaceable> <replaceable><HOSTNAME></replaceable> localhost <replaceable>[alias1] [alias2] ...</replaceable>
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page