mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
systemd: Replace busybox' binaries only if applicable
Previously, the package would overwrite busybox' binaries even if Busybox was set in the config as the default init system. Signed-Off-By: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
a0469f5bac
commit
b1e4bf079d
@ -54,6 +54,7 @@ endif
|
|||||||
SYSTEMD_MAKE_OPT += LIBS=-lrt
|
SYSTEMD_MAKE_OPT += LIBS=-lrt
|
||||||
SYSTEMD_MAKE_OPT += LDFLAGS+=-ldl
|
SYSTEMD_MAKE_OPT += LDFLAGS+=-ldl
|
||||||
|
|
||||||
|
ifeq ($(BR2_INIT_SYSTEMD),y)
|
||||||
define SYSTEMD_INSTALL_INIT_HOOK
|
define SYSTEMD_INSTALL_INIT_HOOK
|
||||||
ln -fs ../usr/lib/systemd/systemd $(TARGET_DIR)/sbin/init
|
ln -fs ../usr/lib/systemd/systemd $(TARGET_DIR)/sbin/init
|
||||||
ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/halt
|
ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/halt
|
||||||
@ -62,6 +63,9 @@ define SYSTEMD_INSTALL_INIT_HOOK
|
|||||||
|
|
||||||
ln -fs ../../../usr/lib/systemd/system/multi-user.target $(TARGET_DIR)/etc/systemd/system/default.target
|
ln -fs ../../../usr/lib/systemd/system/multi-user.target $(TARGET_DIR)/etc/systemd/system/default.target
|
||||||
endef
|
endef
|
||||||
|
SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
|
||||||
|
SYSTEMD_INSTALL_INIT_HOOK
|
||||||
|
endif
|
||||||
|
|
||||||
define SYSTEMD_INSTALL_TTY_HOOK
|
define SYSTEMD_INSTALL_TTY_HOOK
|
||||||
rm -f $(TARGET_DIR)/etc/systemd/system/getty.target.wants/getty@tty1.service
|
rm -f $(TARGET_DIR)/etc/systemd/system/getty.target.wants/getty@tty1.service
|
||||||
@ -69,7 +73,6 @@ define SYSTEMD_INSTALL_TTY_HOOK
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
|
SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
|
||||||
SYSTEMD_INSTALL_INIT_HOOK \
|
|
||||||
SYSTEMD_INSTALL_TTY_HOOK \
|
SYSTEMD_INSTALL_TTY_HOOK \
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user