[Git-commits] [grml/grml-live] da778b: Switch from grml-runtty to agetty

Michael Prokop mika at grml.org
Wed May 24 14:37:32 CEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-live
  Commit: da778b9822ddaadb442ec1047b9dc2abd1294063
      https://github.com/grml/grml-live/commit/da778b9822ddaadb442ec1047b9dc2abd1294063
  Author: Darshaka Pathirana <dpat at syn-net.org>
  Date:   2017-05-20 (Sat, 20 May 2017)

  Changed paths:
    M etc/grml/fai/config/files/etc/systemd/system/getty at tty5.service.d/override.conf/GRMLBASE
    M etc/grml/fai/config/files/etc/systemd/system/getty at tty6.service.d/override.conf/GRMLBASE
    A etc/grml/fai/config/files/etc/systemd/system/getty at tty7.service.d/override.conf/GRMLBASE

  Log Message:
  -----------
  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


  Commit: 48143b65fbe57e2591a1c72e21656f525f4aa79c
      https://github.com/grml/grml-live/commit/48143b65fbe57e2591a1c72e21656f525f4aa79c
  Author: Darshaka Pathirana <dpat at syn-net.org>
  Date:   2017-05-24 (Wed, 24 May 2017)

  Changed paths:
    M etc/grml/fai/config/files/etc/systemd/system/getty at tty1.service.d/override.conf/GRMLBASE
    M etc/grml/fai/config/files/etc/systemd/system/getty at tty2.service.d/override.conf/GRMLBASE
    M etc/grml/fai/config/files/etc/systemd/system/getty at tty3.service.d/override.conf/GRMLBASE
    M etc/grml/fai/config/files/etc/systemd/system/getty at tty4.service.d/override.conf/GRMLBASE

  Log Message:
  -----------
  Get rid of grml-runtty

What once was done by grml-runtty can be now be accomplished by systemd.

That said, there is a weird behavior when starting GNU/screen via
"run-screen". When started via grml-runtty screen runs zsh, but
when started directly via systemd screen runs /bin/sh (= dash).

The reason for that is, that the SHELL variable is empty when called
directly via systemd whereas SHELL=/bin/zsh when started via
grml-runtty. I could not figure out why but a solution would be to set
the "Environment"-option in the systemd-unit which I will propose in a
separate commit.

(partly) fixes grml/grml#14


  Commit: 68719720b5707d8f8e6e0b4b3569074ede06e285
      https://github.com/grml/grml-live/commit/68719720b5707d8f8e6e0b4b3569074ede06e285
  Author: Darshaka Pathirana <dpat at syn-net.org>
  Date:   2017-05-24 (Wed, 24 May 2017)

  Changed paths:
    M etc/grml/fai/config/files/etc/systemd/system/getty at tty2.service.d/override.conf/GRMLBASE
    M etc/grml/fai/config/files/etc/systemd/system/getty at tty3.service.d/override.conf/GRMLBASE
    M etc/grml/fai/config/files/etc/systemd/system/getty at tty4.service.d/override.conf/GRMLBASE

  Log Message:
  -----------
  Run zsh when starting screen

When starting GNU/screen via systemd the SHELL varible is empty whereas
SHELL=/bin/zsh when starting screen via grml-runtty.

If we can assume that zsh is installed on Grml then this solution is ok.
If not, we should address that in the run-screen script with something like:

  SHELL=/bin/sh
  [ -x /bin/zsh ] && SHELL=/bin/zsh

  # now run screen with config

    if [ `id -u` = 0 ] ; then
      exec screen -U -c /etc/grml/screenrc -s $SHELL
  [snip]

(partly) fixes grml/grml#14


  Commit: fcb31f427e5042a3156a609ab6f92263827032fd
      https://github.com/grml/grml-live/commit/fcb31f427e5042a3156a609ab6f92263827032fd
  Author: Michael Prokop <mika at grml.org>
  Date:   2017-05-24 (Wed, 24 May 2017)

  Changed paths:
    M etc/grml/fai/config/files/etc/systemd/system/getty at tty11.service.d/override.conf/GRMLBASE
    M etc/grml/fai/config/files/etc/systemd/system/getty at tty12.service.d/override.conf/GRMLBASE

  Log Message:
  -----------
  Switch from grml-runtty to agetty also on tty11 + tty12

Closes grml/grml#14 now that grml-runtty is only used with non-systemd systems


  Commit: c69679e378d752b91393eaf56c47e9a58f91752f
      https://github.com/grml/grml-live/commit/c69679e378d752b91393eaf56c47e9a58f91752f
  Author: Michael Prokop <mika at grml.org>
  Date:   2017-05-24 (Wed, 24 May 2017)

  Changed paths:
    M debian/changelog

  Log Message:
  -----------
  Release new version 0.29.5


Compare: https://github.com/grml/grml-live/compare/d3bb6191a568...c69679e378d7


More information about the Git-commits mailing list