summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-17 19:11:48 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-17 19:11:48 +0200
commitd4d882e5cefb6b16d84e651a00a9e98914d54bd6 (patch)
tree6bee47516541a4756e8e62927aedb68ccce20d1a /src
parentc9999773927020a011f1d14ea03ae41431217b89 (diff)
logind: make VT reservation logic compatible with containers
Diffstat (limited to 'src')
-rw-r--r--src/login/logind.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/login/logind.c b/src/login/logind.c
index f72eb490fe..3f71f5b4a9 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;
}