aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Norbert Lange <nolange79@gmail.com>2020-02-06 10:36:24 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-09-04 11:48:47 +0200
commit50beb0a42de6d7f9f5d588d9eb5988e1b7d1db90 (patch)
tree380825f01cc640e9f2b34302297d83a87a1c38a2
parent5940d5e434e85b16d8d1073a35f4d36949490909 (diff)
downloadbuildroot-50beb0a42de6d7f9f5d588d9eb5988e1b7d1db90.tar.gz
buildroot-50beb0a42de6d7f9f5d588d9eb5988e1b7d1db90.tar.bz2
package/systemd: move preset-all HOOK to fakeroot stage
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> (cherry picked from commit 65b63785a642bbc565924edf365b5d7c080f961c) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/systemd/systemd.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index 45b5e31a3a..732958d65e 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -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)