From: Darshaka Pathirana Date: Fri, 19 May 2017 23:39:13 +0000 (+0200) Subject: Switch from grml-runtty to agetty X-Git-Tag: v0.29.5~4 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=da778b9822ddaadb442ec1047b9dc2abd1294063 Switch from grml-runtty to agetty 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 --- diff --git a/etc/grml/fai/config/files/etc/systemd/system/getty@tty5.service.d/override.conf/GRMLBASE b/etc/grml/fai/config/files/etc/systemd/system/getty@tty5.service.d/override.conf/GRMLBASE index 923b2bf..c60cef0 100644 --- a/etc/grml/fai/config/files/etc/systemd/system/getty@tty5.service.d/override.conf/GRMLBASE +++ b/etc/grml/fai/config/files/etc/systemd/system/getty@tty5.service.d/override.conf/GRMLBASE @@ -3,4 +3,4 @@ [Service] Type=idle ExecStart= -ExecStart=-/sbin/grml-runtty /dev/tty5 /bin/zsh $USERNAME +ExecStart=-/sbin/agetty -a $USERNAME %I $TERM diff --git a/etc/grml/fai/config/files/etc/systemd/system/getty@tty6.service.d/override.conf/GRMLBASE b/etc/grml/fai/config/files/etc/systemd/system/getty@tty6.service.d/override.conf/GRMLBASE index e3fe606..c60cef0 100644 --- a/etc/grml/fai/config/files/etc/systemd/system/getty@tty6.service.d/override.conf/GRMLBASE +++ b/etc/grml/fai/config/files/etc/systemd/system/getty@tty6.service.d/override.conf/GRMLBASE @@ -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 index 0000000..c60cef0 --- /dev/null +++ b/etc/grml/fai/config/files/etc/systemd/system/getty@tty7.service.d/override.conf/GRMLBASE @@ -0,0 +1,6 @@ +# This file was deployed via grml-live. + +[Service] +Type=idle +ExecStart= +ExecStart=-/sbin/agetty -a $USERNAME %I $TERM