mount: make sure mount_add_extras() is always invoked when we load a mount unit
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Nov 2018 11:37:43 +0000 (12:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Dec 2018 16:30:14 +0000 (17:30 +0100)
commit780ae0221a3ad8e149eb4397c0ea2a549557f064
tree2233620c1546b0481a87715febe385de0bb4c561
parent1f736476474dcf371bfa0660aa71a7708f2ed217
mount: make sure mount_add_extras() is always invoked when we load a mount unit

We need to make sure that the slice property is initialized whenever
mount_load() is invoked, even if we fail to load things properly off
disk. This is important since we generally don't allow changing the
slice after a unit has been started. But given that we must track the
state of external objects with mount units we must hence initialize the
property no matter what.
src/core/mount.c