From 4461ba4f5d629d515530e5e1dc9aba6b98505ff9 Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Thu, 21 Jan 2021 15:44:49 +0800 Subject: 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 (From OE-Core rev: aa4d56fc5f7d772df86220f44fe15f7689a3093a) Signed-off-by: Mingli Yu Signed-off-by: Richard Purdie --- meta/recipes-core/systemd/systemd_247.2.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/recipes-core/systemd/systemd_247.2.bb') diff --git a/meta/recipes-core/systemd/systemd_247.2.bb b/meta/recipes-core/systemd/systemd_247.2.bb index 84d997196c..7ddcb169c3 100644 --- a/meta/recipes-core/systemd/systemd_247.2.bb +++ b/meta/recipes-core/systemd/systemd_247.2.bb @@ -24,6 +24,7 @@ SRC_URI += "file://touchscreen.rules \ file://0001-systemd.pc.in-use-ROOTPREFIX-without-suffixed-slash.patch \ file://0001-logind-Restore-chvt-as-non-root-user-without-polkit.patch \ file://0027-proc-dont-trigger-mount-error-with-invalid-options-o.patch \ + file://0001-analyze-resolve-executable-path-if-it-is-relative.patch \ " # patches needed by musl -- cgit v1.2.3-54-g00ecf