systemd: Enable spwaning getty's on serial devices

Message ID 20180322092250.4217-1-stefan.schantl@ipfire.org
State Accepted
Commit 2dfd22f3bf1c09ebff3044c797f9ed4f899aaeee
Headers
Series systemd: Enable spwaning getty's on serial devices |

Commit Message

Stefan Schantl March 22, 2018, 8:22 p.m. UTC
  Fixes #11678.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 systemd/systemd.nm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
  

Patch

diff --git a/systemd/systemd.nm b/systemd/systemd.nm
index 037f783dc..aa818c5fa 100644
--- a/systemd/systemd.nm
+++ b/systemd/systemd.nm
@@ -5,7 +5,7 @@ 
 
 name       = systemd
 version    = 233
-release    = 1
+release    = 2
 
 maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
 groups     = System/Base
@@ -285,6 +285,7 @@  packages
 
 			/usr/bin/systemctl enable \
 				getty@.service \
+				serial-getty@.service \
 				remote-fs.target \
 				systemd-readahead-replay.service \
 				systemd-readahead-collect.service \
@@ -312,6 +313,9 @@  packages
 				mv /etc/systemd/journald.conf.paknew /etc/systemd/journald.conf
 				/usr/bin/systemctl restart systemd-journald.service >/dev/null 2>&1 || :
 			fi
+
+			# Enable spawning getty's on serial devices.
+			systemctl enable serial-getty@.service >/dev/null 2>&1 || :
 		end
 
 		# Be sure to start the new udev after everything is done.