systemd: drop 0027-Start-getty-on-lxc.patch

Since quite some time, systemd starts getty on these consoles
automatically.
This commit is contained in:
Florian Klink 2020-01-26 15:10:34 +01:00
parent 22bb3a6771
commit 1ad4accdaf
2 changed files with 0 additions and 28 deletions

View File

@ -1,27 +0,0 @@
From f3a6f3056e69808ebbc7e72b1d03b85c750a3cae Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
Date: Wed, 16 Apr 2014 00:35:14 +0200
Subject: [PATCH 27/27] Start getty on lxc
---
units/getty@.service.m4 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/units/getty@.service.m4 b/units/getty@.service.m4
index 80e793bb73..0daba10f2a 100644
--- a/units/getty@.service.m4
+++ b/units/getty@.service.m4
@@ -31,7 +31,9 @@ Before=rescue.service
# On systems without virtual consoles, don't start any getty. Note
# that serial gettys are covered by serial-getty@.service, not this
# unit.
-ConditionPathExists=/dev/tty0
+ConditionPathExists=|/dev/tty0
+ConditionVirtualization=|lxc
+ConditionVirtualization=|lxc-libvirt
[Service]
# the VT is cleared by TTYVTDisallocate
--
2.24.1

View File

@ -65,7 +65,6 @@ in stdenv.mkDerivation {
./0021-add-rootprefix-to-lookup-dir-paths.patch
./0022-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch
./0023-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch
./0027-Start-getty-on-lxc.patch
];
outputs = [ "out" "lib" "man" "dev" ];