From 879d58f65a99c5f73608c1fa16d1fca7f46dbb99 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Mon, 17 Apr 2017 09:38:19 +0100 Subject: Use systemctl instead of chkconfig to disable services. This allows both systemd and sysv services to be disabled. Also add support for disabling systemd timers. --- draklive | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/draklive b/draklive index 48b7e85..27bbbde 100755 --- a/draklive +++ b/draklive @@ -282,7 +282,8 @@ sub post_install_system { run_({ root => $live->get_system_root, targetarch => $live->{settings}{arch} }, 'sh', '-c', "rpm -qa $erase | xargs rpm -e ") if $erase; - run_({ root => $live->get_system_root }, 'chkconfig', '--del', $_) foreach @{$live->{system}{disable_services}}; + run_({ root => $live->get_system_root }, 'systemctl', 'disable', $_ . '.service') foreach @{$live->{system}{disable_services}}; + run_({ root => $live->get_system_root }, 'systemctl', 'disable', $_ . '.timer') foreach @{$live->{system}{disable_timers}}; #- make sure harddrake is run: #- if previous HW config file is empty, we assumes DrakX has just completed the installation -- cgit v1.2.1