]> git.ipfire.org Git - thirdparty/systemd.git/commit
Revert "chase: invert CHASE_NO_AUTOFS and only set it where needed"
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Aug 2025 15:09:34 +0000 (00:09 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Aug 2025 17:15:36 +0000 (02:15 +0900)
commit2e7d7e929e8ceba99e523b5e8a363e581fdac727
tree7a0294bc8cb6910377449efecee15d5734acba1b
parent1441f2e992181318d00ea42feec886cb223938fd
Revert "chase: invert CHASE_NO_AUTOFS and only set it where needed"

This reverts commit 490aa05ca1ba8e3e2a5ed13e1a77f5ea9f1c93b0.

As commented https://github.com/systemd/systemd/pull/38569#discussion_r2284978273,
the commit makes autofs check bypassed. Before the commit, when
CHASE_NO_AUTOFS is set, we did not shortcut chasing paths, and refused
any autofs mount points in the path. However, with the commit, the flag
was swapped but even when CHASE_AUTOFS is unset, the autofs check may be
skipped.

To fix the issue, rather than swapping the flag, we should introduce
another flag, say CHASE_TRIGGER_AUTOFS. This revert the commit, and in a
later commit, the new flag will be introduced.
19 files changed:
mkosi/mkosi.sanitizers/mkosi.postinst
src/basic/chase.c
src/basic/chase.h
src/bootctl/bootctl-install.c
src/bootctl/bootctl-status.c
src/core/exec-invoke.c
src/core/mount.c
src/core/namespace.c
src/core/service.c
src/libsystemd/sd-device/sd-device.c
src/mount/mount-tool.c
src/mountfsd/mountwork.c
src/shared/find-esp.c
src/sysupdate/sysupdate-resource.c
src/sysupdate/sysupdate-transfer.c
src/sysupdate/sysupdate.c
src/test/test-chase-manual.c
src/tmpfiles/tmpfiles.c
test/units/TEST-74-AUX-UTILS.userdbctl.sh