summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/services.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm
index cef49bb5a..6927b71b8 100644
--- a/perl-install/services.pm
+++ b/perl-install/services.pm
@@ -468,6 +468,7 @@ sub services() {
sub systemd_unit_exists {
my ($name) = @_;
+ # we test with -l as symlinks are not valid when the system is chrooted:
-e "$::prefix/lib/systemd/system/$name.service" or -l "$::prefix/lib/systemd/system/$name.service";
}