From e1a520e09d08036a3cb8662dfbb433a2679fcce7 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 27 Feb 2006 19:13:00 +0000 Subject: allow to disable services --- tools/draklive | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/draklive b/tools/draklive index 27165856d..cb1f03848 100755 --- a/tools/draklive +++ b/tools/draklive @@ -465,6 +465,8 @@ sub post_install_system { my $erase = join(' ', @{$live->{system}{erase_rpms}}); run_({ root => get_system_root($live) }, 'sh', '-c', "rpm -qa $erase | xargs rpm -e ") if $erase; + run_({ root => get_system_root($live) }, 'chkconfig', '--del', $_) foreach @{$live->{system}{disable_services}}; + my @patches = map { Cwd::abs_path($_) } @{$live->{system}{patches}}; each_index { !defined $_ and die "unable to find file " . $live->{system}{patches}[$::i] } @patches; run_('patch', '-p0', '-s', '-N', '-F', 0, '-d', get_system_root($live), '-r', '/tmp', '-i', $_) foreach @patches; -- cgit v1.2.1