Summary: | ConditionPathExists not working for units/sys-kernel-security.automount | ||
---|---|---|---|
Product: | systemd | Reporter: | Daniel Drake <dan> |
Component: | general | Assignee: | Lennart Poettering <lennart> |
Status: | RESOLVED NOTABUG | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
my kernel config
strace log |
Description
Daniel Drake
2011-05-09 01:46:41 UTC
I can not reproduce this. *seems* to work all fine here. Please check your setup again. # ls -l /sys/kernel/security ls: cannot access /sys/kernel/security: No such file or directory # systemctl status sys-kernel-security.automount sys-kernel-security.automount - Security File System Automount Point Loaded: loaded (/lib/systemd/system/sys-kernel-security.automount) Active: inactive (dead) start condition failed at Mon, 09 May 2011 12:37:09 +0200; 3min 14s ago Where: /sys/kernel/security I think this is a misunderstanding mostly. You seem to have enabled the feature that makes /sys/kernel/security but have not enabled the autofs4 support. That means systemd tries to install the automount point, but can't do this. Hence: enable autofs support, or completely disable the security support so that the sysfs directory for it goes away. Closing. Feel free to reopen if my guess isn't right. Kay, double-checked. /sys/kernel/security is not there. I can't run the systemctl check due to the problem described at http://lists.freedesktop.org/archives/systemd-devel/2011-May/002253.html Lennart, I have the kernel option for /sys/kernel/security disabled (so that directory doesn't appear), and I have autofs4 enabled. Attaching full kernel config now. Created attachment 46505 [details]
my kernel config
Try booting into emergency mode (i.e. pass "emergency" on the kernel cmdline), then start running "strace -f -p 1" and then start your service manually with systemctl. This should show you how the process is forked off, and which syscall fails. Created attachment 46725 [details]
strace log
Thanks, that will help me debug other issues as well.
Here's a strace capture where you can see the issue. Interesting bit starts at line 74 (where I run "systemctl start sys-kernel-security.automount")
Oops, I overlooked something silly. The ConditionPathExists in sys-kernel-security.automount was only added after systemd v26 was released, and I'm running v26 so the ConditionPathExists line isn't actually present. If I add it manually, it works as expected. sorry for the noise. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.