mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-08 20:58:20 +03:00
core: let's be defensive, /dev/nfs is also a special mount source, filter it out
This commit is contained in:
parent
219f3cd941
commit
5de0acf40d
@ -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, "/"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user