From 2a8ceecd80baf21df509c96d0cbc9a1b39cd7d4b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Erdmann?= Date: Thu, 9 Oct 2014 15:58:03 +0200 Subject: [PATCH] package/systemd: check BR2_TARGET_GENERIC_GETTY MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Do not create a [serial-]getty link if BR2_TARGET_GENERIC_GETTY is not set. Might be useful for custom setups (rootfs overlay). [Peter: use BR2_TARGET_GENERIC_GETTY_PORT to match the code below] Signed-off-by: André Erdmann Signed-off-by: Peter Korsgaard --- package/systemd/systemd.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index dafc65ce21..94407aba51 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -187,6 +187,7 @@ define SYSTEMD_DISABLE_SERVICE_TTY1 rm -f $(TARGET_DIR)/etc/systemd/system/getty.target.wants/getty@tty1.service endef +ifneq ($(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT)),) # systemd needs getty.service for VTs and serial-getty.service for serial ttys define SYSTEMD_INSTALL_SERVICE_TTY if echo $(BR2_TARGET_GENERIC_GETTY_PORT) | egrep -q 'tty[0-9]*$$'; \ @@ -198,6 +199,7 @@ define SYSTEMD_INSTALL_SERVICE_TTY ln -fs ../../../../lib/systemd/system/$${SERVICE}@.service \ $(TARGET_DIR)/etc/systemd/system/getty.target.wants/$${SERVICE}@$(BR2_TARGET_GENERIC_GETTY_PORT).service endef +endif define SYSTEMD_INSTALL_INIT_SYSTEMD $(SYSTEMD_DISABLE_SERVICE_TTY1) -- 2.30.2