Hi, currently, logind was enforcing the presence of /dev/tty0 to start properly. This device is not present on Xen (when using xencons=tty) or S/390.
Attached patch fixes this issue. -- Frederic Crozat <fcro...@suse.com> SUSE
>From b40e075944c72a3fc45796c1d059673cef7c7db8 Mon Sep 17 00:00:00 2001 From: Frederic Crozat <fcro...@suse.com> Date: Mon, 19 Dec 2011 17:17:09 +0100 Subject: [PATCH] logind: do not abort if /dev/tty0 doesn't exist Xen or S/390 might not have /dev/tty0, logind should cope with it. --- src/logind.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/logind.c b/src/logind.c index 4633a5e..f491cee 100644 --- a/src/logind.c +++ b/src/logind.c @@ -906,6 +906,8 @@ static int manager_connect_console(Manager *m) { m->console_active_fd = open("/sys/class/tty/tty0/active", O_RDONLY|O_NOCTTY|O_CLOEXEC); if (m->console_active_fd < 0) { + if (errno == ENOENT) + return 0; log_error("Failed to open /sys/class/tty/tty0/active: %m"); return -errno; } -- 1.7.7
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel