buildrootschalter/package/systemd
André Erdmann c95bf441a6 package/systemd: fix getty setup
When trying to run a buildroot system configured with
BR2_TARGET_GENERIC_GETTY_PORT="tty1" (x86_64), the boot process hangs
with the following message:
  "A start job is running for dev-tty1.device (<time> / 1min 30s)"

Replacing /etc/systemd/system/getty.target.wants/serial-getty@tty1.service
(linking to serial-getty@) with getty@tty1.service (-> getty@) fixes the issue.

This patch adds a check that "detects" the tty type by removing digits at the
end of BR2_TARGET_GENERIC_GETTY_PORT and comparing the resulting base name.
An instance of getty@service gets created if the name matches "tty",
otherwise serial-getty@ gets instantiated (as before).

So, tty1,tty2,... are created as links getty@tty1.service -> getty@,
while ttyS0, ttyAMA0, ... are created as instances of serial-getty@.

[Peter: simplify logic]
Signed-off-by: André Erdmann <dywi@mailerd.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-10-12 15:37:01 +02:00
..
Config.in systemd: add SMACK support option. 2014-06-08 16:31:15 +02:00
network.service systemd: add network unit file 2014-06-14 18:41:08 +02:00
systemd-01-fix-getty-unit.patch
systemd-02-build-sys-revert-use-of-ln-relative-option.patch systemd: bump to version 215 2014-07-26 09:08:39 +02:00
systemd-03-fix-am-path-libgcrypt-no-found.patch systemd: bump to version 214 2014-07-18 21:27:48 +02:00
systemd.mk package/systemd: fix getty setup 2014-10-12 15:37:01 +02:00