mirror of
https://github.com/systemd/systemd.git
synced 2025-02-03 17:47:28 +03:00
Merge pull request #5112 from yuwata/fix-5105
core: add missing unit_add_to_load_queue() to mount_setup_new_unit()
This commit is contained in:
commit
f78bada30d
@ -1408,7 +1408,7 @@ static int mount_setup_new_unit(
|
|||||||
|
|
||||||
u->source_path = strdup("/proc/self/mountinfo");
|
u->source_path = strdup("/proc/self/mountinfo");
|
||||||
MOUNT(u)->where = strdup(where);
|
MOUNT(u)->where = strdup(where);
|
||||||
if (!u->source_path && !MOUNT(u)->where)
|
if (!u->source_path || !MOUNT(u)->where)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
/* Make sure to initialize those fields before mount_is_extrinsic(). */
|
/* Make sure to initialize those fields before mount_is_extrinsic(). */
|
||||||
@ -1435,6 +1435,7 @@ static int mount_setup_new_unit(
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unit_add_to_load_queue(u);
|
||||||
flags->is_mounted = true;
|
flags->is_mounted = true;
|
||||||
flags->just_mounted = true;
|
flags->just_mounted = true;
|
||||||
flags->just_changed = true;
|
flags->just_changed = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user