[Git-commits] [grml/grml-autoconfig] 14ce31: Rely on /proc/1/comm to identify running systemd

Michael Prokop mika at grml.org
Fri Jan 13 13:38:57 CET 2017


  Branch: refs/heads/mika/systemd
  Home:   https://github.com/grml/grml-autoconfig
  Commit: 14ce31b3b73c1ad6b448420d49ebb9d78c70d890
      https://github.com/grml/grml-autoconfig/commit/14ce31b3b73c1ad6b448420d49ebb9d78c70d890
  Author: Michael Prokop <mika at grml.org>
  Date:   2017-01-13 (Fri, 13 Jan 2017)

  Changed paths:
    M autoconfig.functions

  Log Message:
  -----------
  Rely on /proc/1/comm to identify running systemd

/proc/[pid]/comm is available since Linux 2.6.33 so
we should be able to rely on that.

Inside /proc/1/cmdline might end up additional boot options,
e.g. when booting with "nocolor" boot option it ends up as
"/sbin/initnocolor" and then our check breaks.


  Commit: e0dbcabf440a716f05f7b29961596f0fba6ae6f8
      https://github.com/grml/grml-autoconfig/commit/e0dbcabf440a716f05f7b29961596f0fba6ae6f8
  Author: Michael Prokop <mika at grml.org>
  Date:   2017-01-13 (Fri, 13 Jan 2017)

  Changed paths:
    M autoconfig.functions

  Log Message:
  -----------
  Source /etc/grml_nocolors with nocolor boot option

Otherwise we still end up with colors in the output because
$NORMAL isn't defined properly.


Compare: https://github.com/grml/grml-autoconfig/compare/348b546fca90...e0dbcabf440a


More information about the Git-commits mailing list