Switch from grml-runtty to agetty
authorDarshaka Pathirana <dpat@syn-net.org>
Fri, 19 May 2017 23:39:13 +0000 (01:39 +0200)
committerDarshaka Pathirana <dpat@syn-net.org>
Sat, 20 May 2017 03:00:12 +0000 (05:00 +0200)
grml-runtty used to fix most of the pre-systemd environment problems. It
seems that it causes more troubles nowadays than it solved back then.
First and foremost grml-runtty does not provide a (systemd) login
session which prevents us from starting X reliably. Therefor replacing
grml-runtty with agetty with autologin where a grml-shell is used so far.

tty1 to tty4, where grml-runtty starts run-welcome (grml-quickconfig),
two root- and a grml-GNU-screen session, should also be replaced with a
proper systemd-unit.

Relates to grml/grml#14 and grml/grml#20

etc/grml/fai/config/files/etc/systemd/system/getty@tty5.service.d/override.conf/GRMLBASE
etc/grml/fai/config/files/etc/systemd/system/getty@tty6.service.d/override.conf/GRMLBASE
etc/grml/fai/config/files/etc/systemd/system/getty@tty7.service.d/override.conf/GRMLBASE [new file with mode: 0644]

index e3fe606..c60cef0 100644 (file)
@@ -3,4 +3,4 @@
 [Service]
 Type=idle
 ExecStart=
-ExecStart=-/bin/zsh --login -c "[ ! -e /var/run/grml_startx.started ] && [ -x /etc/init.d/startx ] && (touch /var/run/grml_startx.started && /sbin/grml-runtty /dev/tty6 /etc/init.d/startx root; chvt 1) || /sbin/grml-runtty /dev/tty6 /bin/zsh $USERNAME" >/dev/tty6 2>&1 < /dev/tty6
+ExecStart=-/sbin/agetty -a $USERNAME %I $TERM
diff --git a/etc/grml/fai/config/files/etc/systemd/system/getty@tty7.service.d/override.conf/GRMLBASE b/etc/grml/fai/config/files/etc/systemd/system/getty@tty7.service.d/override.conf/GRMLBASE
new file mode 100644 (file)
index 0000000..c60cef0
--- /dev/null
@@ -0,0 +1,6 @@
+# This file was deployed via grml-live.
+
+[Service]
+Type=idle
+ExecStart=
+ExecStart=-/sbin/agetty -a $USERNAME %I $TERM