summaryrefslogtreecommitdiff
path: root/src/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target.c')
-rw-r--r--src/target.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target.c b/src/target.c
index e61255c123..b8d4a01b64 100644
--- a/src/target.c
+++ b/src/target.c
@@ -92,6 +92,9 @@ static int target_add_getty_dependencies(Target *t) {
if (!unit_has_name(UNIT(t), SPECIAL_GETTY_TARGET))
return 0;
+ if (detect_container(NULL) > 0)
+ return 1;
+
if (read_one_line_file("/sys/class/tty/console/active", &active) >= 0) {
const char *tty;