Commit 43f90339 authored by Vitaly Lipatov's avatar Vitaly Lipatov

is_active_systemd: base on static info about systemd running

parent 0a366cf5
...@@ -516,6 +516,7 @@ set_pm_type() ...@@ -516,6 +516,7 @@ set_pm_type()
if [ -z "$DISTRARCH" ] ; then if [ -z "$DISTRARCH" ] ; then
DISTRARCH=$($DISTRVENDOR --distro-arch) DISTRARCH=$($DISTRVENDOR --distro-arch)
fi fi
DISTRCONTROL="$($DISTRVENDOR -y)"
set_target_pkg_env set_target_pkg_env
# override package manager detection result # override package manager detection result
...@@ -607,7 +608,7 @@ PMTYPE=$CMD ...@@ -607,7 +608,7 @@ PMTYPE=$CMD
is_active_systemd() is_active_systemd()
{ {
[ "$($DISTRVENDOR -y)" = "systemd" ] [ "$DISTRCONTROL" = "systemd" ]
} }
assure_distr() 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