summaryrefslogtreecommitdiff
path: root/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-16 18:13:58 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-16 18:13:58 +0200
commit8407a5d0183d9513349754f1eac86e2fdec8bd76 (patch)
tree23f0ef1f45dfb5a0d904f215973a062045547e0b /unit.c
parentd4e6a6f66b7b3c797a1446816b8512d82c92278f (diff)
swap: don't add mount links for swap devices
Diffstat (limited to 'unit.c')
-rw-r--r--unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unit.c b/unit.c
index ee0c120b24..1959b1b940 100644
--- a/unit.c
+++ b/unit.c
@@ -1864,7 +1864,7 @@ int unit_add_node_link(Unit *u, const char *what, bool wants) {
/* Adds in links to the device node that this unit is based on */
- if (!path_startswith(what, "/dev/") && !path_startswith(what, "/sys/"))
+ if (!is_device_path(what))
return 0;
if (!(e = unit_name_build_escape(what+1, NULL, ".device")))