[systemd-commits] src/core

Lennart Poettering lennart at kemper.freedesktop.org
Wed May 13 05:41:17 PDT 2015


 src/core/mount.c |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 7ba2711d3fd283c389db2a1e7b9598ba9f0dac0c
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed May 13 14:40:37 2015 +0200

    core: never create device depencies for /dev/root mounts
    
    http://lists.freedesktop.org/archives/systemd-devel/2015-May/031658.html

diff --git a/src/core/mount.c b/src/core/mount.c
index e143f6b..8853311 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;
 



More information about the systemd-commits mailing list