]> err.no Git - systemd/commitdiff
systemd: enable all udev services unconditionally
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 3 Sep 2010 11:30:57 +0000 (13:30 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 3 Sep 2010 11:30:57 +0000 (13:30 +0200)
Makefile.am
init/udev-retry.service.in
init/udev-settle.service.in
init/udev.service.in

index 512de34a3166a30f139536aad10bedd681b87dda..44cf00218829376202826bf24b154b0d9d841ada 100644 (file)
@@ -26,6 +26,11 @@ DISTCHECK_CONFIGURE_FLAGS = \
 
 CLEANFILES =
 
+INSTALL_EXEC_HOOKS =
+INSTALL_DATA_HOOKS =
+UNINSTALL_EXEC_HOOKS =
+DISTCHECK_HOOKS =
+
 # ------------------------------------------------------------------------------
 # libudev
 # ------------------------------------------------------------------------------
@@ -84,16 +89,18 @@ libudev-install-move-hook:
 libudev-uninstall-move-hook:
        rm -f $(DESTDIR)$(rootlib_execdir)/libudev.so*
 
-INSTALL_EXEC_HOOKS = libudev-install-move-hook
-UNINSTALL_EXEC_HOOKS = libudev-uninstall-move-hook
+INSTALL_EXEC_HOOKS += libudev-install-move-hook
+UNINSTALL_EXEC_HOOKS += libudev-uninstall-move-hook
 
 # ------------------------------------------------------------------------------
 # main udev
 # ------------------------------------------------------------------------------
-install-data-local:
+udev-confdirs:
        -mkdir -p $(DESTDIR)$(sysconfdir)/udev/rules.d
        -mkdir -p $(DESTDIR)$(libexecdir)/devices
 
+INSTALL_DATA_HOOKS += udev-confdirs
+
 EXTRA_DIST += \
        rules/arch \
        rules/misc
@@ -120,6 +127,14 @@ systemdsystemunit_DATA = \
        init/udev.service \
        init/udev-settle.service \
        init/udev-retry.service
+
+systemd-install-hook:
+       mkdir -p $(DESTDIR)$(systemdsystemunitdir)/sysinit.target.wants
+       ln -sf ../udev.service $(DESTDIR)$(systemdsystemunitdir)/sysinit.target.wants/udev.service
+       ln -sf ../udev-settle.service $(DESTDIR)$(systemdsystemunitdir)/sysinit.target.wants/udev-settle.service
+       ln -sf ../udev-retry.service $(DESTDIR)$(systemdsystemunitdir)/sysinit.target.wants/udev-retry.service
+
+INSTALL_DATA_HOOKS += systemd-install-hook
 endif
 
 sbin_PROGRAMS = \
@@ -585,7 +600,7 @@ extras/keymap/keys-to-name.h: extras/keymap/keys.txt Makefile
 
 keymaps-distcheck-hook: extras/keymap/keys.txt
        $(top_srcdir)/extras/keymap/check-keymaps.sh $(top_srcdir) $^
-DISTCHECK_HOOKS = keymaps-distcheck-hook
+DISTCHECK_HOOKS += keymaps-distcheck-hook
 
 endif # ENABLE_EXTRAS
 
@@ -607,6 +622,8 @@ EXTRA_DIST += $(TESTS)
 
 install-exec-hook: $(INSTALL_EXEC_HOOKS)
 
+install-data-hook: $(INSTALL_DATA_HOOKS)
+
 uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
 
 distcheck-hook: $(DISTCHECK_HOOKS)
index ab8241b85ee9f1064bf4ed922351a90fed66d609..222714e897c7a8f694e972dba7e370616130f723 100644 (file)
@@ -5,8 +5,5 @@ After=local-fs.target udev.service
 
 [Service]
 Type=oneshot
+RemainAfterExit=yes
 ExecStart=@sbindir@/udevadm trigger --type=failed --action=add
-
-[Install]
-WantedBy=sysinit.target
-Also=udev.service udev-settle.service
index d58ea9c27d0229b9f11113eb791f05455c10f97a..7550aaebd52505dae310d0b427dc07c8363cebee 100644 (file)
@@ -7,7 +7,3 @@ After=udev.service
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=@sbindir@/udevadm settle
-
-[Install]
-WantedBy=sysinit.target
-Also=udev.service udev-retry.service
index b07f4db6bd054869109c2588571d886a1ce51441..4e5488f3a569463c409fac1862f778e469d30ced 100644 (file)
@@ -7,7 +7,3 @@ Before=sysinit.target
 Type=notify
 ExecStart=@sbindir@/udevd
 ExecStartPost=@sbindir@/udevadm trigger --type=subsystems --action=add ; @sbindir@/udevadm trigger --type=devices --action=add
-
-[Install]
-WantedBy=sysinit.target
-Also=udev-settle.service udev-retry.service