[systemd-devel] [PATCH] remote-fs.target: do not order after network.target

Tom Gundersen teg at jklm.no
Sat Jun 11 06:55:11 PDT 2011


remote-fs.target is ordered after the {auto,}mount units. In case of automount
we do not want to wait for the network to come up before proceeding. In case
of a regular mount unit, the unit will be ordered after network.target
so the behavior is unchanged.

This speeds up boot quite a bit for me when having some services needing
NetworkManager-wait-online.service, and having my home partition on nfs
under an automountpoint.
---
 units/.gitignore          |    1 -
 units/remote-fs.target    |   14 ++++++++++++++
 units/remote-fs.target.m4 |   19 -------------------
 3 files changed, 14 insertions(+), 20 deletions(-)
 create mode 100644 units/remote-fs.target
 delete mode 100644 units/remote-fs.target.m4

diff --git a/units/.gitignore b/units/.gitignore
index fe23b12..f969466 100644
--- a/units/.gitignore
+++ b/units/.gitignore
@@ -31,7 +31,6 @@ systemd-random-seed-save.service
 systemd-initctl.service
 systemd-logger.service
 getty at .service
-remote-fs.target
 systemd-update-utmp-runlevel.service
 systemd-update-utmp-shutdown.service
 test-env-replace
diff --git a/units/remote-fs.target b/units/remote-fs.target
new file mode 100644
index 0000000..a48f87e
--- /dev/null
+++ b/units/remote-fs.target
@@ -0,0 +1,14 @@
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 2 of the License, or
+#  (at your option) any later version.
+
+# See systemd.special(7) for details
+
+[Unit]
+Description=Remote File Systems
+
+[Install]
+WantedBy=multi-user.target
diff --git a/units/remote-fs.target.m4 b/units/remote-fs.target.m4
deleted file mode 100644
index 53054b6..0000000
--- a/units/remote-fs.target.m4
+++ /dev/null
@@ -1,19 +0,0 @@
-#  This file is part of systemd.
-#
-#  systemd is free software; you can redistribute it and/or modify it
-#  under the terms of the GNU General Public License as published by
-#  the Free Software Foundation; either version 2 of the License, or
-#  (at your option) any later version.
-
-# See systemd.special(7) for details
-
-[Unit]
-Description=Remote File Systems
-m4_dnl
-m4_ifdef(`FOR_SYSTEM',
-m4_dnl When running in system mode we need the network up
-After=network.target
-)m4_dnl
-
-[Install]
-WantedBy=multi-user.target
-- 
1.7.5.4



More information about the systemd-devel mailing list