summaryrefslogtreecommitdiff
path: root/src/core/mount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-24 12:39:13 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-24 12:39:13 +0200
commit63a8b2f947ad77c464acac475be84682065a6522 (patch)
treec04b56e74af96945ccc20ad07c0005a3129e704c /src/core/mount.c
parenta07fdfa376add41d9101d39db25fb2ecb17d5fca (diff)
mount: only run fsck for actual device nodes
Diffstat (limited to 'src/core/mount.c')
-rw-r--r--src/core/mount.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/mount.c b/src/core/mount.c
index 7e3ccc11b6..db793f2b5d 100644
--- a/src/core/mount.c
+++ b/src/core/mount.c
@@ -353,7 +353,8 @@ static int mount_add_device_links(Mount *m) {
return 0;
if (!mount_is_bind(p) &&
- !path_equal(m->where, "/")) {
+ !path_equal(m->where, "/") &&
+ is_device_path(p->what)) {
r = unit_add_node_link(UNIT(m), p->what, false);
if (r < 0)
return r;
@@ -362,6 +363,7 @@ static int mount_add_device_links(Mount *m) {
if (p->passno > 0 &&
!mount_is_bind(p) &&
!path_equal(m->where, "/") &&
+ is_device_path(p->what) &&
UNIT(m)->manager->running_as == SYSTEMD_SYSTEM) {
char *name;
Unit *fsck;