chiark / gitweb /
Move udevadm to rootbindir
authorMichael Biebl <biebl@debian.org>
Mon, 11 Mar 2013 06:17:39 +0000 (07:17 +0100)
committerMichael Biebl <biebl@debian.org>
Mon, 11 Mar 2013 06:18:33 +0000 (07:18 +0100)
The udevadm utility is needed during early boot, so move it to
rootbindir to support split-/usr configurations.

Makefile.am
src/core/macros.systemd.in
src/login/71-seat.rules.in
units/initrd-udevadm-cleanup-db.service.in
units/systemd-udev-settle.service.in
units/systemd-udev-trigger.service.in

index 89768e6c32844acb849289c7935e6b6fee119667..680dd6597ef4e742c1127e6128a4b4935402ab11 100644 (file)
@@ -1785,7 +1785,7 @@ SYSINIT_TARGET_WANTS += \
        systemd-udevd.service \
        systemd-udev-trigger.service
 
-bin_PROGRAMS += \
+rootbin_PROGRAMS += \
        udevadm
 
 rootlibexec_PROGRAMS += \
@@ -1871,7 +1871,7 @@ udevadm_LDADD = \
 # Update hwdb on installation. Do not bother if installing
 # in DESTDIR, since this is likely for packaging purposes.
 hwdb-update-hook:
-       -test -n "$(DESTDIR)" || $(bindir)/udevadm hwdb --update
+       -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
 
 INSTALL_DATA_HOOKS += \
        hwdb-update-hook
index 647cce69136608e4d05689b2ae444b00c5c21d42..f77082c2db0d849ac836c55a7b7e33f9e8fe4267 100644 (file)
@@ -61,11 +61,11 @@ fi \
 %{nil}
 
 %udev_hwdb_update() \
-@bindir@/udevadm hwdb --update >/dev/null 2>&1 || : \
+@rootbindir@/udevadm hwdb --update >/dev/null 2>&1 || : \
 %{nil}
 
 %udev_rules_update() \
-@bindir@/udevadm control --reload >/dev/null 2>&1 || : \
+@rootbindir@/udevadm control --reload >/dev/null 2>&1 || : \
 %{nil}
 
 %journal_catalog_update() \
index a064de4b5e7cc08b4a72c2d92add7e15a876757f..ad26acbbb30c613d13c375ce0f55b2ba47b5c1a3 100644 (file)
@@ -38,7 +38,7 @@ SUBSYSTEM=="usb", ATTR{idVendor}=="17e9", ATTR{idProduct}=="401a", ATTR{product}
 SUBSYSTEM=="usb", ATTR{idVendor}=="17e9", ATTR{idProduct}=="401a", ATTR{product}=="mimo inc", \
                   ATTR{../idVendor}=="058f", ATTR{../idProduct}=="6254", \
                   ENV{ID_AVOID_LOOP}=="", \
-                  RUN+="@bindir@/udevadm trigger --parent-match=%p/.."
+                  RUN+="@rootbindir@/udevadm trigger --parent-match=%p/.."
 
 TAG=="seat", ENV{ID_PATH}=="", IMPORT{builtin}="path_id"
 TAG=="seat", ENV{ID_FOR_SEAT}=="", ENV{ID_PATH_TAG}!="", ENV{ID_FOR_SEAT}="$env{SUBSYSTEM}-$env{ID_PATH_TAG}"
index b800c210dbaf1998cafa30574339366c4894c1ee..5c6654efc460fbacc5109628bd8e8c51bc5e70cd 100644 (file)
@@ -15,4 +15,4 @@ Before=initrd-switch-root.target
 
 [Service]
 Type=oneshot
-ExecStart=-@bindir@/udevadm info --cleanup-db
+ExecStart=-@rootbindir@/udevadm info --cleanup-db
index b631949648a85b341f705c80ead0b4466ba42c2a..8070559c18ed430f7071334013f8ef183dd69f94 100644 (file)
@@ -27,4 +27,4 @@ ConditionCapability=CAP_MKNOD
 Type=oneshot
 TimeoutSec=180
 RemainAfterExit=yes
-ExecStart=@bindir@/udevadm settle
+ExecStart=@rootbindir@/udevadm settle
index 391f9969306d96a6f993dc20270d5bd641e742d0..bafea54573c2a6b4273efeaab047c5e8e5086816 100644 (file)
@@ -16,4 +16,4 @@ ConditionCapability=CAP_MKNOD
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=@bindir@/udevadm trigger --type=subsystems --action=add ; @bindir@/udevadm trigger --type=devices --action=add
+ExecStart=@rootbindir@/udevadm trigger --type=subsystems --action=add ; @rootbindir@/udevadm trigger --type=devices --action=add