]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/mount.c
core: create workdir/upperdir when mounting a Type=overlay mount unit
authorLuca Boccassi <bluca@debian.org>
Thu, 7 Dec 2023 23:19:36 +0000 (23:19 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 8 Dec 2023 02:22:14 +0000 (11:22 +0900)
commit6c75eff6afd90596d09a33a9275be292db4e3380
tree2e7ddba90b79f4bdffc02ccb753fe45c9108d7a6
parentfe6e0cfa19dd1de4ac599ae207182fd556adcfa7
core: create workdir/upperdir when mounting a Type=overlay mount unit

So far we created the target directory, and the source for bind mounts,
but not workdir/upperdir for overlays, so it has to be done separately
and strictly before the unit is started, which is annoying. Check the
options when creating directories, and if upper/work directories are
specified, create them.
man/systemd.mount.xml
src/core/mount.c
test/units/testsuite-74.mount.sh