]> code.ossystems Code Review - openembedded-core.git/commit
systemd: resolve executable path if it is relative
authorMingli Yu <mingli.yu@windriver.com>
Thu, 21 Jan 2021 07:44:49 +0000 (15:44 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Jan 2021 17:08:49 +0000 (17:08 +0000)
commit2e0259931f71701147039bb8e60251892f67dbcd
tree58b5ef0a945113f51e724cbf4a9aac3da99b1ee2
parent79821d5a185e25384f5b6b5158b238bbee17c79e
systemd: resolve executable path if it is relative

Backport a patch to fix the below systemd-analyze issue:
 # systemd-analyze --man=false verify /lib/systemd/system/initrd-cleanup.service
 initrd-cleanup.service: Command systemctl is not executable: No such file or directory

 # which systemctl
 /bin/systemctl

 # cat /lib/systemd/system/initrd-cleanup.service
 [snip]
 [Unit]
 Description=Cleaning Up and Shutting Down Daemons
 DefaultDependencies=no
 AssertPathExists=/etc/initrd-release
 OnFailure=emergency.target
 OnFailureJobMode=replace-irreversibly
 After=initrd-root-fs.target initrd-fs.target initrd.target

 [Service]
 Type=oneshot
 ExecStart=systemctl --no-block isolate initrd-switch-root.target

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd/0001-analyze-resolve-executable-path-if-it-is-relative.patch [new file with mode: 0644]
meta/recipes-core/systemd/systemd_247.2.bb