summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/mount.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/mount.c b/src/core/mount.c
index e143f6b6d8..8853311bd7 100644
--- a/src/core/mount.c
+++ b/src/core/mount.c
@@ -317,6 +317,12 @@ static int mount_add_device_links(Mount *m) {
if (!is_device_path(p->what))
return 0;
+ /* /dev/root is a really weird thing, it's not a real device,
+ * but just a path the kernel exports for the root file system
+ * specified on the kernel command line. Ignore it here. */
+ if (path_equal(p->what, "/dev/root"))
+ return 0;
+
if (path_equal(m->where, "/"))
return 0;