[systemd-devel] ConditionKernelCommandLine not working?
Albert Strasheim
fullung at gmail.com
Mon Aug 15 04:27:13 PDT 2011
Hello all
Does ConditionKernelCommandLine work in systemd-26-5.fc15.x86_64?
I've tested it with my own units and with the Fedora
fedora-autorelabel.service, but no luck.
Here's the dmesg:
[ 0.000000] Command line: selinux=0 systemd.log_level=debug autorelabel
[ 0.000000] Kernel command line: selinux=0 systemd.log_level=debug
autorelabel
[ 3.215830] systemd[1]: Installed new job
fedora-autorelabel.service/start as 55
[ 3.229562] systemd[1]: Installed new job
fedora-autorelabel-mark.service/start as 59
[ 4.512418] systemd[1]: Starting of fedora-autorelabel.service
requested but condition failed. Ignoring.
# cat /lib/systemd/system/fedora-autorelabel.service
[Unit]
Description=Relabel all filesystems, if necessary
DefaultDependencies=no
Requires=local-fs.target
Conflicts=shutdown.target
After=local-fs.target
Before=sysinit.target shutdown.target
ConditionSecurity=selinux
ConditionKernelCommandLine=|autorelabel
ConditionPathExists=|/.autorelabel
[Service]
ExecStart=/lib/systemd/fedora-autorelabel
Type=oneshot
TimeoutSec=0
RemainAfterExit=yes
StandardInput=tty
Regards
Albert
More information about the systemd-devel
mailing list