Commit 7ec3aaa6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-sh-functions: improve systemd detection (docker support)

parent 30588f26
......@@ -558,11 +558,12 @@ is_active_systemd()
SYSTEMD_CGROUP_DIR=/sys/fs/cgroup/systemd
[ -x "$SYSTEMCTL" ] || return
[ -d "$SYSTEMD_CGROUP_DIR" ] || return
a='' mountpoint -q "$SYSTEMD_CGROUP_DIR" || return
readlink /sbin/init | grep -q 'systemd' || return
#a='' mountpoint -q "$SYSTEMD_CGROUP_DIR" || return
cat /proc/1/cmdline | grep -q 'systemd' || return
#readlink /sbin/init | grep -q 'systemd' || return
# some hack
# shellcheck disable=SC2009
ps ax | grep '[s]ystemd' | grep -q -v 'systemd-udev'
#ps ax | grep '[s]ystemd' | grep -q -v 'systemd-udev'
}
assure_distr()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment