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:
commit
2ea4189354
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user