teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0564-man-add-a-note-about-_netdev-usage.patch

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