1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

getty-generator: don't use "3270!tty1" when instantiating serial-getty@.service on s390x

Path of the 3270 console in /sys is "/sys/class/tty/3270!tty1" but its device
node is "/dev/3270/tty1".
This commit is contained in:
Franck Bui 2025-03-12 17:51:39 +01:00 committed by Yu Watanabe
parent 36a9e47a0d
commit dbe61d9ec7

View File

@ -242,17 +242,17 @@ static int run(const char *dest, const char *dest_early, const char *dest_late)
return r;
}
/* Automatically add in a serial getty on the first virtualizer console */
/* Automatically add a serial getty to each available virtualizer console. */
FOREACH_STRING(j,
"hvc0",
"xvc0",
"hvsi0",
"sclp_line0",
"ttysclp0",
"3270!tty1") {
"3270/tty1") {
_cleanup_free_ char *p = NULL;
p = path_join("/sys/class/tty", j);
p = path_join("/dev", j);
if (!p)
return log_oom();
if (access(p, F_OK) < 0)