core/mount: also remove default deps from /proc/self/mountinfo when it is updated
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 14 May 2022 20:49:01 +0000 (05:49 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 4 Aug 2022 16:35:38 +0000 (01:35 +0900)
commit0fe06168b319064a84fca05109ac3eaaeea499c2
tree154ef6f557ba11fbf9e0855d017b9cf6f41706bf
parentb9e6d23dfc93b0eab8762c6fbe4fddc9eeb0c04f
core/mount: also remove default deps from /proc/self/mountinfo when it is updated

The dependencies tagged with UNIT_DEPENDENCY_MOUNTINFO_DEFAULT depend
on both /proc/self/mountinfo and corresponding .mount unit file.
Hence, if some information from mountinfo is updated, e.g. device mounted
on the path, we need to update the dependencies.
src/core/mount.c