chiark / gitweb /
build-sys: don't hard-code binary paths in initrd-*.service
[elogind.git] / units / initrd-switch-root.service.in
similarity index 88%
rename from units/initrd-switch-root.service
rename to units/initrd-switch-root.service.in
index e076b391debc8356bbdbb93e3f9f4284583230b2..6740264149f7883c9089a015baf27115154028fc 100644 (file)
@@ -15,5 +15,5 @@ AllowIsolate=yes
 [Service]
 Type=oneshot
 # we have to use "--force" here, otherwise systemd would umount /run
-ExecStart=/usr/bin/systemctl --no-block --force switch-root /sysroot
+ExecStart=@rootbindir@/systemctl --no-block --force switch-root /sysroot
 KillMode=none