summaryrefslogtreecommitdiffstats
path: root/tools/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-02-27 19:13:00 +0000
committerOlivier Blin <oblin@mandriva.org>2006-02-27 19:13:00 +0000
commite1a520e09d08036a3cb8662dfbb433a2679fcce7 (patch)
tree4a4dfc2ce7a6d023c625d4c7ed93038f6dc2024a /tools/draklive
parent62fdf29623e5e8b43a88fd1baea3be8af3e33956 (diff)
downloaddrakx-backup-do-not-use-e1a520e09d08036a3cb8662dfbb433a2679fcce7.tar
drakx-backup-do-not-use-e1a520e09d08036a3cb8662dfbb433a2679fcce7.tar.gz
drakx-backup-do-not-use-e1a520e09d08036a3cb8662dfbb433a2679fcce7.tar.bz2
drakx-backup-do-not-use-e1a520e09d08036a3cb8662dfbb433a2679fcce7.tar.xz
drakx-backup-do-not-use-e1a520e09d08036a3cb8662dfbb433a2679fcce7.zip
allow to disable services
Diffstat (limited to 'tools/draklive')
-rwxr-xr-xtools/draklive2
1 files changed, 2 insertions, 0 deletions
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;