mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
systemd: disable ldconfig through configure option
Systemd v216+ includes a configure option to disable ldconfig. Signed-off-by: Gabe Evans <gabe@hashrabbit.co> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
2f9bfad51e
commit
a566520ef6
@@ -37,6 +37,7 @@ SYSTEMD_CONF_OPTS += \
|
|||||||
--with-dbussystemservicedir=/usr/share/dbus-1/system-services \
|
--with-dbussystemservicedir=/usr/share/dbus-1/system-services \
|
||||||
--disable-efi \
|
--disable-efi \
|
||||||
--disable-gnuefi \
|
--disable-gnuefi \
|
||||||
|
--disable-ldconfig \
|
||||||
--disable-tests \
|
--disable-tests \
|
||||||
--disable-dbus \
|
--disable-dbus \
|
||||||
--without-python
|
--without-python
|
||||||
@@ -154,17 +155,10 @@ define SYSTEMD_SANITIZE_PATH_IN_UNITS
|
|||||||
-exec $(SED) 's,$(HOST_DIR),,g' {} \;
|
-exec $(SED) 's,$(HOST_DIR),,g' {} \;
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Disable ldconfig.service, as /sbin/ldconfig is not available when the
|
|
||||||
# target is built with a glibc-based toolchain.
|
|
||||||
define SYSTEMD_DISABLE_LDCONFIG_SERVICE_HOOK
|
|
||||||
rm -f $(TARGET_DIR)/lib/systemd/system/sysinit.target.wants/ldconfig.service
|
|
||||||
endef
|
|
||||||
|
|
||||||
SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
|
SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
|
||||||
SYSTEMD_INSTALL_INIT_HOOK \
|
SYSTEMD_INSTALL_INIT_HOOK \
|
||||||
SYSTEMD_INSTALL_MACHINEID_HOOK \
|
SYSTEMD_INSTALL_MACHINEID_HOOK \
|
||||||
SYSTEMD_INSTALL_RESOLVCONF_HOOK \
|
SYSTEMD_INSTALL_RESOLVCONF_HOOK \
|
||||||
SYSTEMD_DISABLE_LDCONFIG_SERVICE_HOOK \
|
|
||||||
SYSTEMD_SANITIZE_PATH_IN_UNITS
|
SYSTEMD_SANITIZE_PATH_IN_UNITS
|
||||||
|
|
||||||
define SYSTEMD_USERS
|
define SYSTEMD_USERS
|
||||||
|
|||||||
Reference in New Issue
Block a user