]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/mount: correctly set DefaultDependencies=no for mounts from mountinfo 32844/head
authorMike Yuan <me@yhndnzj.com>
Wed, 15 May 2024 13:49:00 +0000 (21:49 +0800)
committerMike Yuan <me@yhndnzj.com>
Wed, 15 May 2024 14:02:32 +0000 (22:02 +0800)
commitbb5f3e6410f426a468b522207bb5cd913f009230
treece075704a0a9e2c2a58bdacae12094773c03629a
parentbb33c5da87d2e6e5f24d99dd51910cf42125bf1a
core/mount: correctly set DefaultDependencies=no for mounts from mountinfo

Follow-up for 3c0a1b1e70c1fe6e0b6707fab7dc86b1500d0f82

Before this commit, DefaultDependencies=no is set in
mount_add_extras(). However, when generating mount units
from /proc/self/mountinfo, we don't have a unit in memory
yet, and mount_setup_new_unit() doesn't call into
mount_add_extras().

Fixes #32838
src/core/mount.c