ryantimwilson / rpms / systemd

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