mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
build-sys: don't hard-code binary paths in initrd-*.service
Instead use @bindir@ for udevadm and @rootbindir@ for systemctl.
This commit is contained in:
parent
2f6eb835ca
commit
7b40ce553f
16
Makefile.am
16
Makefile.am
@ -382,11 +382,7 @@ dist_systemunit_DATA = \
|
||||
units/systemd-udevd-control.socket \
|
||||
units/systemd-udevd-kernel.socket \
|
||||
units/system-update.target \
|
||||
units/initrd-parse-etc.service \
|
||||
units/initrd-cleanup.service \
|
||||
units/initrd-switch-root.target \
|
||||
units/initrd-udevadm-cleanup-db.service \
|
||||
units/initrd-switch-root.service
|
||||
units/initrd-switch-root.target
|
||||
|
||||
nodist_systemunit_DATA = \
|
||||
units/getty@.service \
|
||||
@ -418,7 +414,11 @@ nodist_systemunit_DATA = \
|
||||
units/systemd-udevd.service \
|
||||
units/systemd-udev-trigger.service \
|
||||
units/systemd-udev-settle.service \
|
||||
units/debug-shell.service
|
||||
units/debug-shell.service \
|
||||
units/initrd-parse-etc.service \
|
||||
units/initrd-cleanup.service \
|
||||
units/initrd-udevadm-cleanup-db.service \
|
||||
units/initrd-switch-root.service
|
||||
|
||||
dist_userunit_DATA = \
|
||||
units/user/default.target \
|
||||
@ -460,6 +460,10 @@ EXTRA_DIST += \
|
||||
units/systemd-hybrid-sleep.service.in \
|
||||
units/systemd-suspend.service.in \
|
||||
units/quotaon.service.in \
|
||||
units/initrd-parse-etc.service.in \
|
||||
units/initrd-cleanup.service.in \
|
||||
units/initrd-udevadm-cleanup-db.service.in \
|
||||
units/initrd-switch-root.service.in \
|
||||
introspect.awk \
|
||||
man/custom-html.xsl
|
||||
|
||||
|
@ -15,4 +15,4 @@ After=local-fs.target swap.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/systemctl --no-block isolate initrd-switch-root.target
|
||||
ExecStart=@rootbindir@/systemctl --no-block isolate initrd-switch-root.target
|
@ -15,6 +15,6 @@ ConditionPathExists=/etc/initrd-release
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStartPre=/usr/bin/systemctl daemon-reload
|
||||
ExecStart=/usr/bin/systemctl start local-fs.target
|
||||
ExecStart=/usr/bin/systemctl --no-block start initrd-cleanup.service
|
||||
ExecStartPre=@rootbindir@/systemctl daemon-reload
|
||||
ExecStart=@rootbindir@/systemctl start local-fs.target
|
||||
ExecStart=@rootbindir@/systemctl --no-block start initrd-cleanup.service
|
@ -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
|
@ -15,4 +15,4 @@ Before=initrd-switch-root.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=-/usr/bin/udevadm info --cleanup-db
|
||||
ExecStart=-@bindir@/udevadm info --cleanup-db
|
Loading…
Reference in New Issue
Block a user