From: Michael Prokop Date: Fri, 13 Jan 2017 12:36:20 +0000 (+0100) Subject: Rely on /proc/1/comm to identify running systemd X-Git-Tag: v0.15.0~6 X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=14ce31b3b73c1ad6b448420d49ebb9d78c70d890;hp=14ce31b3b73c1ad6b448420d49ebb9d78c70d890 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. ---