Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] systemd: let getty instead of serial-getty handle /dev/console
@ 2016-09-09 16:10 Floris Bos
  2016-09-11 20:00 ` Thomas Petazzoni
  2016-09-11 21:09 ` Yann E. MORIN
  0 siblings, 2 replies; 9+ messages in thread
From: Floris Bos @ 2016-09-09 16:10 UTC (permalink / raw)
  To: buildroot

The serial-getty unit depends on dev-%i.device which does not
seem to be created for /dev/console
Workaround this by letting normal getty unit handle things
if BR2_TARGET_GENERIC_GETTY_PORT is set to 'console'

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
---
 package/systemd/systemd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index fb07819..975bfb6 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -357,7 +357,7 @@ ifneq ($(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT)),)
 # systemd needs getty.service for VTs and serial-getty.service for serial ttys
 # also patch the file to use the correct baud-rate, the default baudrate is 115200 so look for that
 define SYSTEMD_INSTALL_SERVICE_TTY
-	if echo $(BR2_TARGET_GENERIC_GETTY_PORT) | egrep -q 'tty[0-9]*$$'; \
+	if echo $(BR2_TARGET_GENERIC_GETTY_PORT) | egrep -q 'console|tty[0-9]*$$'; \
 	then \
 		SERVICE="getty"; \
 	else \
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-09-25 21:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-09 16:10 [Buildroot] [PATCH] systemd: let getty instead of serial-getty handle /dev/console Floris Bos
2016-09-11 20:00 ` Thomas Petazzoni
2016-09-11 21:09 ` Yann E. MORIN
2016-09-21  7:01   ` Peter Korsgaard
2016-09-21 20:05     ` Peter Seiderer
2016-09-21 21:47       ` Floris Bos
2016-09-22 18:50         ` Peter Seiderer
2016-09-22 19:25           ` Floris Bos
2016-09-25 21:44             ` Peter Seiderer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox