core/automount: load() should fail when the unit file does not exist
It is not necessary to label as loaded to automount unit when its unit file does not exist. So, let's make automount_load() to fail when the unit file does not exist. Partially fixes #7370.
This commit is contained in:
parent
0e74bad141
commit
4a78b63780
|
@ -224,7 +224,7 @@ static int automount_load(Unit *u) {
|
|||
assert(u->load_state == UNIT_STUB);
|
||||
|
||||
/* Load a .automount file */
|
||||
r = unit_load_fragment_and_dropin_optional(u);
|
||||
r = unit_load_fragment_and_dropin(u);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
|
|
Loading…
Reference in a new issue