From: Darshaka Pathirana Date: Fri, 19 May 2017 13:15:24 +0000 (+0200) Subject: TTY6/VT6 should start a shell if bootoption startx is not given X-Git-Tag: v0.29.5~9 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=5fbe7abee57ced7b1a13c5eb4ae218f6159eddd4;ds=sidebyside 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 --- 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