From: Lennart Poettering Date: Mon, 17 Sep 2012 17:11:48 +0000 (+0200) Subject: logind: make VT reservation logic compatible with containers X-Git-Tag: v190~50 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=d4d882e5cefb6b16d84e651a00a9e98914d54bd6 logind: make VT reservation logic compatible with containers --- diff --git a/src/login/logind.c b/src/login/logind.c index f72eb490f..3f71f5b4a 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -1006,7 +1006,10 @@ static int manager_reserve_vt(Manager *m) { m->reserve_vt_fd = open(p, O_RDWR|O_NOCTTY|O_CLOEXEC|O_NONBLOCK); if (m->reserve_vt_fd < 0) { - log_warning("Failed to pin reserved VT: %m"); + + /* Don't complain on VT-less systems */ + if (errno != ENOENT) + log_warning("Failed to pin reserved VT: %m"); return -errno; }