From ed3ae42807ec2fa39ee4ab92ea3794a06f2e51ac Mon Sep 17 00:00:00 2001 From: Norbert Lange Date: Tue, 22 Feb 2022 11:22:07 +0100 Subject: [PATCH] package/systemd: remove hwdb-update service Since the source HWDB files are already removed from the target, it makes little sense to keep the service around. If accidently triggered it could create an empty database. The service is installed in both staging and host directory as well and not removed from there, so a user could craft his own solutions if it's necessary to update the database. Signed-off-by: Norbert Lange Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/systemd/systemd.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index 624de68584..19fd525534 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -310,6 +310,12 @@ define SYSTEMD_BUILD_HWDB $(HOST_DIR)/bin/systemd-hwdb update --root $(TARGET_DIR) --strict --usr endef SYSTEMD_TARGET_FINALIZE_HOOKS += SYSTEMD_BUILD_HWDB +define SYSTEMD_RM_HWBD_UPDATE_SERVICE + rm -rf $(TARGET_DIR)/usr/lib/systemd/system/systemd-hwdb-update.service \ + $(TARGET_DIR)/usr/lib/systemd/system/*/systemd-hwdb-update.service \ + $(TARGET_DIR)/usr/bin/systemd-hwdb +endef +SYSTEMD_POST_INSTALL_TARGET_HOOKS += SYSTEMD_RM_HWBD_UPDATE_SERVICE else SYSTEMD_CONF_OPTS += -Dhwdb=false endif