]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: drop full paths for utilities in $PATH
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Dec 2019 08:14:57 +0000 (09:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Jan 2020 15:50:16 +0000 (16:50 +0100)
This makes things a bit simpler and the build a bit faster, because we don't
have to rewrite files to do the trivial substitution. @rootbindir@ is always in
our internal $PATH that we use for non-absolute paths, so there should be no
functional change.

27 files changed:
meson.build
units/initrd-cleanup.service [moved from units/initrd-cleanup.service.in with 88% similarity]
units/initrd-parse-etc.service [moved from units/initrd-parse-etc.service.in with 77% similarity]
units/initrd-switch-root.service [moved from units/initrd-switch-root.service.in with 89% similarity]
units/initrd-udevadm-cleanup-db.service [moved from units/initrd-udevadm-cleanup-db.service.in with 93% similarity]
units/meson.build
units/systemd-ask-password-console.service [moved from units/systemd-ask-password-console.service.in with 90% similarity]
units/systemd-ask-password-wall.service [moved from units/systemd-ask-password-wall.service.in with 68% similarity]
units/systemd-boot-system-token.service [moved from units/systemd-boot-system-token.service.in with 96% similarity]
units/systemd-firstboot.service [moved from units/systemd-firstboot.service.in with 87% similarity]
units/systemd-halt.service [moved from units/systemd-halt.service.in with 93% similarity]
units/systemd-hwdb-update.service.in
units/systemd-journal-catalog-update.service [moved from units/systemd-journal-catalog-update.service.in with 93% similarity]
units/systemd-journal-flush.service [moved from units/systemd-journal-flush.service.in with 87% similarity]
units/systemd-kexec.service [moved from units/systemd-kexec.service.in with 93% similarity]
units/systemd-machine-id-commit.service [moved from units/systemd-machine-id-commit.service.in with 92% similarity]
units/systemd-nspawn@.service.in
units/systemd-sysusers.service [moved from units/systemd-sysusers.service.in with 94% similarity]
units/systemd-tmpfiles-clean.service [moved from units/systemd-tmpfiles-clean.service.in with 92% similarity]
units/systemd-tmpfiles-setup-dev.service [moved from units/systemd-tmpfiles-setup-dev.service.in with 90% similarity]
units/systemd-tmpfiles-setup.service [moved from units/systemd-tmpfiles-setup.service.in with 89% similarity]
units/systemd-udev-settle.service [moved from units/systemd-udev-settle.service.in with 95% similarity]
units/systemd-udev-trigger.service [moved from units/systemd-udev-trigger.service.in with 82% similarity]
units/systemd-udevd.service.in
units/user/meson.build
units/user/systemd-tmpfiles-clean.service [moved from units/user/systemd-tmpfiles-clean.service.in with 91% similarity]
units/user/systemd-tmpfiles-setup.service [moved from units/user/systemd-tmpfiles-setup.service.in with 90% similarity]

index 46f3e9c7ba31179196b9d2b3a1251585a671e38f..848140bb03fbdceb4c94824f19165807592bb69b 100644 (file)
@@ -281,7 +281,6 @@ substs.set('userenvgeneratordir',                             userenvgeneratordi
 substs.set('systemshutdowndir',                               systemshutdowndir)
 substs.set('systemsleepdir',                                  systemsleepdir)
 substs.set('CERTIFICATEROOT',                                 get_option('certificate-root'))
-substs.set('SYSTEMCTL',                                       join_paths(rootbindir, 'systemctl'))
 substs.set('RANDOM_SEED',                                     join_paths(randomseeddir, 'random-seed'))
 substs.set('SYSTEM_SYSVINIT_PATH',                            sysvinit_path)
 substs.set('SYSTEM_SYSVRCND_PATH',                            sysvrcnd_path)
similarity index 88%
rename from units/initrd-cleanup.service.in
rename to units/initrd-cleanup.service
index 9775540c947b0cb18e5787221c22801300a4920a..b04607671503fcf043c11ba32c9daffe971de330 100644 (file)
@@ -17,4 +17,4 @@ After=initrd-root-fs.target initrd-fs.target initrd.target
 
 [Service]
 Type=oneshot
-ExecStart=@rootbindir@/systemctl --no-block isolate initrd-switch-root.target
+ExecStart=systemctl --no-block isolate initrd-switch-root.target
similarity index 77%
rename from units/initrd-parse-etc.service.in
rename to units/initrd-parse-etc.service
index 2b3cd61cd6014f4cebc637fb237b34dc18a8e2f4..b0e38368cfbd3782d861675c8b97a707c68c3850 100644 (file)
@@ -18,7 +18,7 @@ ConditionPathExists=/etc/initrd-release
 
 [Service]
 Type=oneshot
-ExecStartPre=-@rootbindir@/systemctl daemon-reload
+ExecStartPre=-systemctl daemon-reload
 # we have to retrigger initrd-fs.target after daemon-reload
-ExecStart=-@rootbindir@/systemctl --no-block start initrd-fs.target
-ExecStart=@rootbindir@/systemctl --no-block start initrd-cleanup.service
+ExecStart=-systemctl --no-block start initrd-fs.target
+ExecStart=systemctl --no-block start initrd-cleanup.service
similarity index 89%
rename from units/initrd-switch-root.service.in
rename to units/initrd-switch-root.service
index 6ce468e872c83dfadd595f419c0d2daf3c6fc9aa..c1a37928880535435318a74e982ec76f8e385bd6 100644 (file)
@@ -17,4 +17,4 @@ AllowIsolate=yes
 
 [Service]
 Type=oneshot
-ExecStart=@rootbindir@/systemctl --no-block switch-root /sysroot
+ExecStart=systemctl --no-block switch-root /sysroot
similarity index 93%
rename from units/initrd-udevadm-cleanup-db.service.in
rename to units/initrd-udevadm-cleanup-db.service
index 09af690986c9b5b929b1ee26624d67dcb926eba7..ad2f2a5b35b74d277ed0f1a2666705f7ba4f38b5 100644 (file)
@@ -17,4 +17,4 @@ Before=initrd-switch-root.target
 
 [Service]
 Type=oneshot
-ExecStart=-@rootbindir@/udevadm info --cleanup-db
+ExecStart=-udevadm info --cleanup-db
index 82c399bee89fd4e938eb1401d39b36fb7356bbc6..f7653c920c96485ff0543b3a69701b4617740d18 100644 (file)
@@ -23,10 +23,14 @@ units = [
         ['hibernate.target',                    'ENABLE_HIBERNATE'],
         ['hybrid-sleep.target',                 'ENABLE_HIBERNATE'],
         ['suspend-then-hibernate.target',       'ENABLE_HIBERNATE'],
+        ['initrd-cleanup.service',              ''],
         ['initrd-fs.target',                    ''],
+        ['initrd-parse-etc.service',            ''],
         ['initrd-root-device.target',           ''],
         ['initrd-root-fs.target',               ''],
+        ['initrd-switch-root.service',          ''],
         ['initrd-switch-root.target',           ''],
+        ['initrd-udevadm-cleanup-db.service',   ''],
         ['initrd.target',                       ''],
         ['kexec.target',                        ''],
         ['ldconfig.service',                    'ENABLE_LDCONFIG',
@@ -81,13 +85,24 @@ units = [
         ['system-update-cleanup.service',       ''],
         ['systemd-ask-password-console.path',   '',
          'sysinit.target.wants/'],
+        ['systemd-ask-password-console.service', ''],
         ['systemd-ask-password-wall.path',      '',
          'multi-user.target.wants/'],
+        ['systemd-ask-password-wall.service',   ''],
+        ['systemd-boot-system-token.service',   'ENABLE_EFI',
+         'sysinit.target.wants/'],
         ['systemd-coredump.socket',             'ENABLE_COREDUMP',
          'sockets.target.wants/'],
-        ['systemd-exit.service',                 ''],
+        ['systemd-exit.service',                ''],
+        ['systemd-firstboot.service',           'ENABLE_FIRSTBOOT',
+         'sysinit.target.wants/'],
+        ['systemd-halt.service',                ''],
         ['systemd-initctl.socket',              '',
          'sockets.target.wants/'],
+        ['systemd-journal-catalog-update.service', '',
+         'sysinit.target.wants/'],
+        ['systemd-journal-flush.service',       '',
+         'sysinit.target.wants/'],
         ['systemd-journal-gatewayd.socket',     'ENABLE_REMOTE HAVE_MICROHTTPD'],
         ['systemd-journal-remote.socket',       'ENABLE_REMOTE HAVE_MICROHTTPD'],
         ['systemd-journald-audit.socket',       '',
@@ -96,18 +111,31 @@ units = [
          'sockets.target.wants/'],
         ['systemd-journald.socket',             '',
          'sockets.target.wants/'],
-        ['systemd-userdbd.socket',              'ENABLE_USERDB',
-         'sockets.target.wants/'],
+        ['systemd-kexec.service',               ''],
+        ['systemd-machine-id-commit.service',   '',
+         'sysinit.target.wants/'],
         ['systemd-networkd.socket',             'ENABLE_NETWORKD'],
-        ['systemd-poweroff.service',             ''],
-        ['systemd-reboot.service',               ''],
+        ['systemd-poweroff.service',            ''],
+        ['systemd-reboot.service',              ''],
         ['systemd-rfkill.socket',               'ENABLE_RFKILL'],
+        ['systemd-sysusers.service',            'ENABLE_SYSUSERS',
+         'sysinit.target.wants/'],
+        ['systemd-tmpfiles-clean.service',      'ENABLE_TMPFILES'],
         ['systemd-tmpfiles-clean.timer',        'ENABLE_TMPFILES',
          'timers.target.wants/'],
+        ['systemd-tmpfiles-setup-dev.service',  'ENABLE_TMPFILES',
+         'sysinit.target.wants/'],
+        ['systemd-tmpfiles-setup.service',      'ENABLE_TMPFILES',
+         'sysinit.target.wants/'],
         ['systemd-udevd-control.socket',        '',
          'sockets.target.wants/'],
+        ['systemd-udev-settle.service',         ''],
+        ['systemd-udev-trigger.service',        '',
+         'sysinit.target.wants/'],
         ['systemd-udevd-kernel.socket',         '',
          'sockets.target.wants/'],
+        ['systemd-userdbd.socket',              'ENABLE_USERDB',
+         'sockets.target.wants/'],
         ['time-set.target',                     ''],
         ['time-sync.target',                    ''],
         ['timers.target',                       ''],
@@ -122,31 +150,20 @@ units = [
 in_units = [
         ['debug-shell.service',                  ''],
         ['emergency.service',                    ''],
-        ['initrd-cleanup.service',               ''],
-        ['initrd-parse-etc.service',             ''],
-        ['initrd-switch-root.service',           ''],
-        ['initrd-udevadm-cleanup-db.service',    ''],
         ['kmod-static-nodes.service',            'HAVE_KMOD ENABLE_TMPFILES',
          'sysinit.target.wants/'],
         ['quotaon.service',                      'ENABLE_QUOTACHECK'],
         ['rc-local.service',                     'HAVE_SYSV_COMPAT'],
         ['rescue.service',                       ''],
-        ['systemd-ask-password-console.service', ''],
-        ['systemd-ask-password-wall.service',    ''],
         ['systemd-backlight@.service',           'ENABLE_BACKLIGHT'],
         ['systemd-binfmt.service',               'ENABLE_BINFMT',
          'sysinit.target.wants/'],
         ['systemd-bless-boot.service',           'ENABLE_EFI HAVE_BLKID'],
         ['systemd-boot-check-no-failures.service', ''],
-        ['systemd-boot-system-token.service',    'ENABLE_EFI',
-         'sysinit.target.wants/'],
         ['systemd-coredump@.service',            'ENABLE_COREDUMP'],
         ['systemd-pstore.service',               'ENABLE_PSTORE'],
-        ['systemd-firstboot.service',            'ENABLE_FIRSTBOOT',
-         'sysinit.target.wants/'],
         ['systemd-fsck-root.service',            ''],
         ['systemd-fsck@.service',                ''],
-        ['systemd-halt.service',                 ''],
         ['systemd-hibernate-resume@.service',    'ENABLE_HIBERNATE'],
         ['systemd-hibernate.service',            'ENABLE_HIBERNATE'],
         ['systemd-hybrid-sleep.service',         'ENABLE_HIBERNATE'],
@@ -158,22 +175,15 @@ in_units = [
         ['systemd-importd.service',              'ENABLE_IMPORTD',
          'dbus-org.freedesktop.import1.service'],
         ['systemd-initctl.service',               ''],
-        ['systemd-journal-catalog-update.service', '',
-         'sysinit.target.wants/'],
-        ['systemd-journal-flush.service',         '',
-         'sysinit.target.wants/'],
         ['systemd-journal-gatewayd.service',     'ENABLE_REMOTE HAVE_MICROHTTPD'],
         ['systemd-journal-remote.service',       'ENABLE_REMOTE HAVE_MICROHTTPD'],
         ['systemd-journal-upload.service',       'ENABLE_REMOTE HAVE_LIBCURL'],
         ['systemd-journald.service',             '',
          'sysinit.target.wants/'],
-        ['systemd-kexec.service',                ''],
         ['systemd-localed.service',              'ENABLE_LOCALED',
          'dbus-org.freedesktop.locale1.service'],
         ['systemd-logind.service',               'ENABLE_LOGIND',
          'multi-user.target.wants/ dbus-org.freedesktop.login1.service'],
-        ['systemd-machine-id-commit.service',    '',
-         'sysinit.target.wants/'],
         ['systemd-machined.service',             'ENABLE_MACHINED',
          'dbus-org.freedesktop.machine1.service'],
         ['systemd-modules-load.service',         'HAVE_KMOD',
@@ -194,20 +204,10 @@ in_units = [
         ['systemd-suspend.service',              ''],
         ['systemd-sysctl.service',               '',
          'sysinit.target.wants/'],
-        ['systemd-sysusers.service',             'ENABLE_SYSUSERS',
-         'sysinit.target.wants/'],
         ['systemd-timedated.service',            'ENABLE_TIMEDATED',
          'dbus-org.freedesktop.timedate1.service'],
         ['systemd-timesyncd.service',            'ENABLE_TIMESYNCD'],
         ['systemd-time-wait-sync.service',       'ENABLE_TIMESYNCD'],
-        ['systemd-tmpfiles-clean.service',       'ENABLE_TMPFILES'],
-        ['systemd-tmpfiles-setup-dev.service',   'ENABLE_TMPFILES',
-         'sysinit.target.wants/'],
-        ['systemd-tmpfiles-setup.service',       'ENABLE_TMPFILES',
-         'sysinit.target.wants/'],
-        ['systemd-udev-settle.service',          ''],
-        ['systemd-udev-trigger.service',         '',
-         'sysinit.target.wants/'],
         ['systemd-udevd.service',                '',
          'sysinit.target.wants/'],
         ['systemd-update-done.service',          '',
similarity index 90%
rename from units/systemd-ask-password-console.service.in
rename to units/systemd-ask-password-console.service
index 60fa7c320009cae82d764499150d3156d37fee91..6ee4c253a39dafcfe4c294072e7db97598b4f704 100644 (file)
@@ -17,5 +17,5 @@ Before=shutdown.target
 ConditionPathExists=!/run/plymouth/pid
 
 [Service]
-ExecStart=@rootbindir@/systemd-tty-ask-password-agent --watch --console
+ExecStart=systemd-tty-ask-password-agent --watch --console
 SystemCallArchitectures=native
similarity index 68%
rename from units/systemd-ask-password-wall.service.in
rename to units/systemd-ask-password-wall.service
index 1e4808b6d57fadd8a6a82a4b92a5c3e6e6bb79af..52a3037cd48ff454b2f56d07b99327778e9929ac 100644 (file)
@@ -13,6 +13,6 @@ Documentation=man:systemd-ask-password-console.service(8)
 After=systemd-user-sessions.service
 
 [Service]
-ExecStartPre=-@SYSTEMCTL@ stop systemd-ask-password-console.path systemd-ask-password-console.service systemd-ask-password-plymouth.path systemd-ask-password-plymouth.service
-ExecStart=@rootbindir@/systemd-tty-ask-password-agent --wall
+ExecStartPre=-systemctl stop systemd-ask-password-console.path systemd-ask-password-console.service systemd-ask-password-plymouth.path systemd-ask-password-plymouth.service
+ExecStart=systemd-tty-ask-password-agent --wall
 SystemCallArchitectures=native
similarity index 96%
rename from units/systemd-boot-system-token.service.in
rename to units/systemd-boot-system-token.service
index e9b742c5c7015b610c8d816e57905659fd4730a4..8aead02417824ee78e2bea41023a2a38e29344d1 100644 (file)
@@ -31,4 +31,4 @@ ConditionPathExists=|!/sys/firmware/efi/efivars/LoaderRandomSeed-4a67b082-0a4c-4
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=@bindir@/bootctl random-seed --graceful
+ExecStart=bootctl random-seed --graceful
similarity index 87%
rename from units/systemd-firstboot.service.in
rename to units/systemd-firstboot.service
index d4deba90b7445c081827d62d227bd122a3d4d552..9f5c7101cd50d846e0978a895245b74599383231 100644 (file)
@@ -20,7 +20,7 @@ ConditionFirstBoot=yes
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=@rootbindir@/systemd-firstboot --prompt-locale --prompt-timezone --prompt-root-password
+ExecStart=systemd-firstboot --prompt-locale --prompt-timezone --prompt-root-password
 StandardOutput=tty
 StandardInput=tty
 StandardError=tty
similarity index 93%
rename from units/systemd-halt.service.in
rename to units/systemd-halt.service
index 09c10058298de140c09380182b33c824e6cd38bd..cd16d1de202a827e0f380d94f287b6ebcfc83a58 100644 (file)
@@ -16,4 +16,4 @@ After=shutdown.target umount.target final.target
 
 [Service]
 Type=oneshot
-ExecStart=@SYSTEMCTL@ --force halt
+ExecStart=systemctl --force halt
index 259fe0de8b01e39c2c708cc02b34ffaaf9620d24..9887018a1f23631a3ca7e2cfd0f9f8b935054fee 100644 (file)
@@ -22,5 +22,5 @@ ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=@rootbindir@/systemd-hwdb update
+ExecStart=systemd-hwdb update
 TimeoutSec=90s
similarity index 93%
rename from units/systemd-journal-catalog-update.service.in
rename to units/systemd-journal-catalog-update.service
index 18b2739ffab0bfe066937cd72c1b69d8fb205df6..6db55a5490ff89825e0321dc8d28b5321f5b1d10 100644 (file)
@@ -19,5 +19,5 @@ ConditionNeedsUpdate=/var
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=@rootbindir@/journalctl --update-catalog
+ExecStart=journalctl --update-catalog
 TimeoutSec=90s
similarity index 87%
rename from units/systemd-journal-flush.service.in
rename to units/systemd-journal-flush.service
index 29b006cba5775ac2fb42859e4d4505d923dac776..0f45743fa0a76e9e54c41b6b46a000ab4eda9af0 100644 (file)
@@ -17,8 +17,8 @@ Before=systemd-tmpfiles-setup.service
 RequiresMountsFor=/var/log/journal
 
 [Service]
-ExecStart=@rootbindir@/journalctl --flush
-ExecStop=@rootbindir@/journalctl --smart-relinquish-var
+ExecStart=journalctl --flush
+ExecStop=journalctl --smart-relinquish-var
 Type=oneshot
 RemainAfterExit=yes
 TimeoutSec=90s
similarity index 93%
rename from units/systemd-kexec.service.in
rename to units/systemd-kexec.service
index 1201b232895b810df5ea8f9ff54b3ebb8716b2b9..7413e1d6b1a5881c518257cc3fa7f32ce5bd80ba 100644 (file)
@@ -16,4 +16,4 @@ After=shutdown.target umount.target final.target
 
 [Service]
 Type=oneshot
-ExecStart=@SYSTEMCTL@ --force kexec
+ExecStart=systemctl --force kexec
similarity index 92%
rename from units/systemd-machine-id-commit.service.in
rename to units/systemd-machine-id-commit.service
index 4f348730eed0cca43ba85587e6f2e61f7213da34..e3acb0f3260bc30ae28d6556296c561fe145c7ec 100644 (file)
@@ -20,5 +20,5 @@ ConditionPathIsMountPoint=/etc/machine-id
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=@rootbindir@/systemd-machine-id-setup --commit
+ExecStart=systemd-machine-id-setup --commit
 TimeoutSec=30s
index 5367ee44105b3bf7dddd21e2773f5473bdee7a64..51634472ac35c4dfff6ced1ae531b7706898b3f0 100644 (file)
@@ -18,7 +18,7 @@ RequiresMountsFor=/var/lib/machines
 
 [Service]
 # Make sure the DeviceAllow= lines below can properly resolve the 'block-loop' expression (and others)
-ExecStart=@bindir@/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth -U --settings=override --machine=%i
+ExecStart=systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth -U --settings=override --machine=%i
 KillMode=mixed
 Type=notify
 RestartForceExitStatus=133
similarity index 94%
rename from units/systemd-sysusers.service.in
rename to units/systemd-sysusers.service
index 4d11bbb76266363151dbe329a92813df5633afcd..da05e0eb1bbe9cb07c0968086ad91c4fda9f9729 100644 (file)
@@ -19,5 +19,5 @@ ConditionNeedsUpdate=/etc
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=@rootbindir@/systemd-sysusers
+ExecStart=systemd-sysusers
 TimeoutSec=90s
similarity index 92%
rename from units/systemd-tmpfiles-clean.service.in
rename to units/systemd-tmpfiles-clean.service
index 5d70aafb29f7cf411906b7c0925788dae00e7386..f20bb143ef7a99dded415e8cb24437fbb25fcfc9 100644 (file)
@@ -17,6 +17,6 @@ Before=shutdown.target
 
 [Service]
 Type=oneshot
-ExecStart=@rootbindir@/systemd-tmpfiles --clean
+ExecStart=systemd-tmpfiles --clean
 SuccessExitStatus=DATAERR
 IOSchedulingClass=idle
similarity index 90%
rename from units/systemd-tmpfiles-setup-dev.service.in
rename to units/systemd-tmpfiles-setup-dev.service
index ed52db4953a6c7a5a4f309520a387414d779a60d..1027823859e5974167959cf01d95b71567d6286d 100644 (file)
@@ -18,5 +18,5 @@ Before=sysinit.target local-fs-pre.target systemd-udevd.service shutdown.target
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=@rootbindir@/systemd-tmpfiles --prefix=/dev --create --boot
+ExecStart=systemd-tmpfiles --prefix=/dev --create --boot
 SuccessExitStatus=DATAERR CANTCREAT
similarity index 89%
rename from units/systemd-tmpfiles-setup.service.in
rename to units/systemd-tmpfiles-setup.service
index 32a475d71531a2121ebecf89388014733228c1e1..29799ee81caa3cee7542f0027835a3f2fa626263 100644 (file)
@@ -19,5 +19,5 @@ RefuseManualStop=yes
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=@rootbindir@/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev
+ExecStart=systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev
 SuccessExitStatus=DATAERR CANTCREAT
similarity index 95%
rename from units/systemd-udev-settle.service.in
rename to units/systemd-udev-settle.service
index 22ebf08c5196d2044998f657062946b14a5c3548..ed6a68b864f2850b4134269f1a09cca9f2c412c1 100644 (file)
@@ -24,4 +24,4 @@ ConditionPathIsReadWrite=/sys
 Type=oneshot
 TimeoutSec=180
 RemainAfterExit=yes
-ExecStart=@rootbindir@/udevadm settle
+ExecStart=udevadm settle
similarity index 82%
rename from units/systemd-udev-trigger.service.in
rename to units/systemd-udev-trigger.service
index b60204eccc0fc7abcfa199d18bf927e495cffd8d..8a625b630599286874e658cb34409bb6bf2210ee 100644 (file)
@@ -19,5 +19,5 @@ ConditionPathIsReadWrite=/sys
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=@rootbindir@/udevadm trigger --type=subsystems --action=add
-ExecStart=@rootbindir@/udevadm trigger --type=devices --action=add
+ExecStart=udevadm trigger --type=subsystems --action=add
+ExecStart=udevadm trigger --type=devices --action=add
index 8b1dd0efc73fa91877f167dd910fd29f67dd8c8e..5eee69933bde944c9afc7db3779997891ecb3a06 100644 (file)
@@ -23,7 +23,7 @@ Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket
 Restart=always
 RestartSec=0
 ExecStart=@rootlibexecdir@/systemd-udevd
-ExecReload=@rootbindir@/udevadm control --reload --timeout 0
+ExecReload=udevadm control --reload --timeout 0
 KillMode=mixed
 TasksMax=infinity
 PrivateMounts=yes
index 36341a42f5abf48a22fadd7b075a18fb49a761ed..cb8f630b8cde79b606c7ec37f8f06ff7db5024e6 100644 (file)
@@ -13,26 +13,14 @@ units = [
         'smartcard.target',
         'sockets.target',
         'sound.target',
-        'timers.target',
         'systemd-exit.service',
+        'systemd-tmpfiles-clean.service',
         'systemd-tmpfiles-clean.timer',
+        'systemd-tmpfiles-setup.service',
+        'timers.target',
 ]
 
 foreach file : units
         install_data(file,
                      install_dir : userunitdir)
 endforeach
-
-in_units = [
-        'systemd-tmpfiles-clean.service',
-        'systemd-tmpfiles-setup.service',
-]
-
-foreach file : in_units
-        gen = configure_file(
-                input : file + '.in',
-                output : file,
-                configuration : substs)
-        install_data(gen,
-                     install_dir : userunitdir)
-endforeach
similarity index 91%
rename from units/user/systemd-tmpfiles-clean.service.in
rename to units/user/systemd-tmpfiles-clean.service
index 306b064e895330e443b43af8e14407eb5cc1d691..3be0de5f7ddfcd1b4b80ef8de8c67a41e5dc4b0e 100644 (file)
@@ -16,6 +16,6 @@ Before=basic.target shutdown.target
 
 [Service]
 Type=oneshot
-ExecStart=@rootbindir@/systemd-tmpfiles --user --clean
+ExecStart=systemd-tmpfiles --user --clean
 SuccessExitStatus=DATAERR
 IOSchedulingClass=idle
similarity index 90%
rename from units/user/systemd-tmpfiles-setup.service.in
rename to units/user/systemd-tmpfiles-setup.service
index a852ef5748038647bccd69874590414bb532377f..c4b29cbe8ce381cd331e62b2ba5d19c5df47ad9b 100644 (file)
@@ -18,7 +18,7 @@ RefuseManualStop=yes
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=@rootbindir@/systemd-tmpfiles --user --create --remove --boot
+ExecStart=systemd-tmpfiles --user --create --remove --boot
 SuccessExitStatus=DATAERR
 
 [Install]