]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: use correct path to refer to plymouth
authorLennart Poettering <lennart@poettering.net>
Tue, 7 Apr 2020 12:00:28 +0000 (14:00 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 16 Apr 2020 14:33:01 +0000 (16:33 +0200)
This doesn't really matter, since in non-/usr-merged systems plymouth
needs to be in /bin and on merged ones it doesn't matter, but it is
still prettier to insert the right path, and avoid /bin on merged
systems, since it's just a compat symlink.

Replaces: #15351

test/test-functions
units/emergency.service.in
units/rescue.service.in

index de07eada56970c99470eb22758c61600de9b0c7c..d468efb0b7bb712c428f635bae8b582aa74a4b01 100644 (file)
@@ -879,7 +879,7 @@ install_execs() {
          # also, plymouth is pulled in by rescue.service, but even there the exit code
          # is ignored; as it's not present on some distros, don't fail if it doesn't exist
          dinfo "Attempting to install $i"
-         inst $i || [ "${i%.local}" != "$i" ] || [ "${i%systemd-update-done}" != "$i" ] || [ "/bin/plymouth" == "$i" ]
+         inst $i || [ "${i%.local}" != "$i" ] || [ "${i%systemd-update-done}" != "$i" ] || [ "${i##*/}" == "plymouth" ]
      done
     )
 }
index d259b6b112ae8a9f41a047264c2e086cae26f104..180d9e6a57c9b7a42cd7916396f0552bf98c9285 100644 (file)
@@ -19,7 +19,7 @@ Before=rescue.service
 [Service]
 Environment=HOME=/root
 WorkingDirectory=-/root
-ExecStartPre=-/bin/plymouth --wait quit
+ExecStartPre=-@rootbindir@/plymouth --wait quit
 ExecStart=-@rootlibexecdir@/systemd-sulogin-shell emergency
 Type=idle
 StandardInput=tty-force
index 2a8f034b94bbc8d656fefbaa91c99994a8520583..4106e2d9f751a873b16d7f2349bde459757abb41 100644 (file)
@@ -18,7 +18,7 @@ Before=shutdown.target
 [Service]
 Environment=HOME=/root
 WorkingDirectory=-/root
-ExecStartPre=-/bin/plymouth --wait quit
+ExecStartPre=-@rootbindir@/plymouth --wait quit
 ExecStart=-@rootlibexecdir@/systemd-sulogin-shell rescue
 Type=idle
 StandardInput=tty-force