mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
Always create dependencies for bind mounts
Dependencies were not created for _netdev mountpoints, the reasoning for this is in the commit fc676b00, i.e. to avoid adding dependencies for network mountpoints where What= appears like a path. Thus proposing this semantically more correct condition when dependencies are added for _actual_ bind mounts irrespectively of network flag. Consequently it allows to add _netdev option to bind mounts, which includes them in remote-fs.target, which simplifies configuration.
This commit is contained in:
parent
0c1792efe4
commit
26919ac110
@ -274,7 +274,7 @@ static int mount_add_mount_links(Mount *m) {
|
||||
pm = get_mount_parameters_fragment(m);
|
||||
if (pm && pm->what &&
|
||||
path_is_absolute(pm->what) &&
|
||||
!mount_is_network(pm)) {
|
||||
(mount_is_bind(pm) || !mount_is_network(pm))) {
|
||||
|
||||
r = unit_require_mounts_for(UNIT(m), pm->what);
|
||||
if (r < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user