anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

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

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