Blame 0027-man-add-a-note-about-_netdev-usage.patch

35bb94
From 51f2176d0df1088407afbadc138aeaa9dbe017e8 Mon Sep 17 00:00:00 2001
ca246f
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
ca246f
Date: Thu, 12 Oct 2017 22:43:58 +0200
ca246f
Subject: [PATCH] man: add a note about _netdev usage
ca246f
35bb94
(cherry picked from commit 288c26165e0ff71857394f360f42432bc808556f)
ca246f
---
ca246f
 man/crypttab.xml | 12 +++++++++++-
ca246f
 1 file changed, 11 insertions(+), 1 deletion(-)
ca246f
ca246f
diff --git a/man/crypttab.xml b/man/crypttab.xml
ca246f
index caed04836e..3aebd7ea90 100644
ca246f
--- a/man/crypttab.xml
ca246f
+++ b/man/crypttab.xml
ca246f
@@ -201,7 +201,16 @@
ca246f
         will be ordered between <filename>remote-fs-pre.target</filename> and
ca246f
         <filename>remote-cryptsetup.target</filename>, instead of
ca246f
         <filename>cryptsetup-pre.target</filename> and
ca246f
-        <filename>cryptsetup.target</filename>.</para></listitem>
ca246f
+        <filename>cryptsetup.target</filename>.</para>
ca246f
+
ca246f
+        <para>Hint: if this device is used for a mount point that is specified in
ca246f
+        <citerefentry project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
ca246f
+        the <option>_netdev</option> option should also be used for the mount
ca246f
+        point. Otherwise, a dependency loop might be created where the mount point
ca246f
+        will be pulled in by <filename>local-fs.target</filename>, while the
ca246f
+        service to configure the network is usually only started <emphasis>after</emphasis>
ca246f
+        the local file system has been mounted.</para>
ca246f
+        </listitem>
ca246f
       </varlistentry>
ca246f
 
ca246f
       <varlistentry>
ca246f
@@ -433,6 +442,7 @@ hidden     /mnt/tc_hidden  /dev/null    tcrypt-hidden,tcrypt-keyfile=/etc/keyfil
ca246f
       <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
ca246f
       <citerefentry><refentrytitle>systemd-cryptsetup@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
ca246f
       <citerefentry><refentrytitle>systemd-cryptsetup-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
ca246f
+      <citerefentry project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
ca246f
       <citerefentry project='die-net'><refentrytitle>cryptsetup</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
ca246f
       <citerefentry project='man-pages'><refentrytitle>mkswap</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
ca246f
       <citerefentry project='man-pages'><refentrytitle>mke2fs</refentrytitle><manvolnum>8</manvolnum></citerefentry>