summaryrefslogtreecommitdiffstats
path: root/perl-install/services.pm
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2020-03-21 12:07:42 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2020-03-21 17:14:37 +0000
commita7fffb36b7e374e33192a1f6b650f7451a713a54 (patch)
treee201ebd4c19c5c570ab5a2f7c4708ee380212015 /perl-install/services.pm
parentbd93eb514e6e1f42b7e136ef8e8b277c3a9d89b0 (diff)
downloaddrakx-a7fffb36b7e374e33192a1f6b650f7451a713a54.tar
drakx-a7fffb36b7e374e33192a1f6b650f7451a713a54.tar.gz
drakx-a7fffb36b7e374e33192a1f6b650f7451a713a54.tar.bz2
drakx-a7fffb36b7e374e33192a1f6b650f7451a713a54.tar.xz
drakx-a7fffb36b7e374e33192a1f6b650f7451a713a54.zip
Fix services::running_systemd().
systemd has migrated to cgroups v2, so the old test no longer works. Instead, test for the existence of /run/systemd/system as described in https://www.freedesktop.org/software/systemd/man/sd_booted.html.
Diffstat (limited to 'perl-install/services.pm')
-rw-r--r--perl-install/services.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm
index f76b29b86..29593c9b2 100644
--- a/perl-install/services.pm
+++ b/perl-install/services.pm
@@ -342,7 +342,7 @@ sub doit {
}
sub running_systemd() {
- run_program::rooted($::prefix, '/bin/mountpoint', '-q', '/sys/fs/cgroup/systemd');
+ -d '/run/systemd/system';
}
sub has_systemd() {