From 5fbe7abee57ced7b1a13c5eb4ae218f6159eddd4 Mon Sep 17 00:00:00 2001 From: Darshaka Pathirana Date: Fri, 19 May 2017 15:15:24 +0200 Subject: [PATCH] TTY6/VT6 should start a shell if bootoption startx is not given When the bootoption "startx" is given, the helper-script "/etc/init.d/startx" is created during the bootprocess (via grml-autoconfig). That means, that if the booptions "startx" is not given, the helper-script is not created and tty6/vt6 should not try to start X but should just start a grml-user-shell. Related to grml/grml#20 --- .../etc/systemd/system/getty@tty6.service.d/override.conf/GRMLBASE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 bcf04b6..cff7d47 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 @@ -1,4 +1,4 @@ [Service] Type=idle ExecStart= -ExecStart=-/bin/zsh --login -c "[ ! -e /var/run/grml_startx.started ] && (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=-/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 -- 2.1.4