2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

Merge pull request #5434 from robin2008/systemd-checking

using execute binary of systemd to determine if systemd is enabled on the distro
This commit is contained in:
Weihua Hu 2018-07-26 14:43:55 +08:00 committed by GitHub
commit 2ea4189354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -425,7 +425,7 @@ if ($::INITIALINSTALL || $::FORCE || $::UPDATEINSTALL)
# The systemd only has LANG and PATH as default environmental variables,
# TERM is needed for KVM consoles(actually screen command needs TERM)
# import the TERM into systemd
if (-d "/usr/lib/systemd/system") {
if (-x "/usr/lib/systemd/systemd" || -x "/lib/systemd/systemd") {
my $term = $ENV{'TERM'};
if (!$term) {
$term = "vt100";