From: Lennart Poettering Date: Tue, 21 Jan 2020 17:09:09 +0000 (+0100) Subject: core: let's be defensive, /dev/nfs is also a special mount source, filter it out X-Git-Tag: v245-rc1~16^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5de0acf40d32e18e55712a045e708d60fcf2c9a8;p=thirdparty%2Fsystemd.git core: let's be defensive, /dev/nfs is also a special mount source, filter it out --- diff --git a/src/core/mount.c b/src/core/mount.c index cf19af10b14..0964eb18642 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -342,10 +342,9 @@ static int mount_add_device_dependencies(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")) + /* /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_IN_SET(p->what, "/dev/root", "/dev/nfs")) return 0; if (path_equal(m->where, "/"))