package/systemd: move preset-all HOOK to fakeroot stage
authorNorbert Lange <nolange79@gmail.com>
Thu, 6 Feb 2020 09:36:24 +0000 (10:36 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 7 Jun 2020 11:45:38 +0000 (13:45 +0200)
User can drop in more systemd units or presets
in an rootfs overlay, which will be copied over *after*
the TARGET_FINALIZE_HOOKS are run.

Instead, run preset-all afterwards from ROOTFS_PRE_CMD_HOOKS

Signed-off-by: Norbert Lange <nolange79@gmail.com>
Reviewed-by: Jérémy ROSEN <jeremy.rosen@smile.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/systemd/systemd.mk

index 6ccf9d6e37ad3ff660fff9c327e8d8521c223c75..e61cec80f05e9d0ab8008c099d9d3b2f6cfc0e7d 100644 (file)
@@ -561,7 +561,7 @@ endef
 define SYSTEMD_PRESET_ALL
        $(HOST_DIR)/bin/systemctl --root=$(TARGET_DIR) preset-all
 endef
-SYSTEMD_TARGET_FINALIZE_HOOKS += SYSTEMD_PRESET_ALL
+SYSTEMD_ROOTFS_PRE_CMD_HOOKS += SYSTEMD_PRESET_ALL
 
 SYSTEMD_CONF_ENV = $(HOST_UTF8_LOCALE_ENV)
 SYSTEMD_NINJA_ENV = $(HOST_UTF8_LOCALE_ENV)