summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-03-07 11:40:58 +0000
committerOlivier Blin <oblin@mandriva.org>2006-03-07 11:40:58 +0000
commit508c371b5ffeab18487ed145f75625dad2acce87 (patch)
treed895605213a59da950bade33bd9ced6b11e82209 /tools
parentff0439d9f929d7ab237856197475d363eb3884ca (diff)
downloaddrakx-backup-do-not-use-508c371b5ffeab18487ed145f75625dad2acce87.tar
drakx-backup-do-not-use-508c371b5ffeab18487ed145f75625dad2acce87.tar.gz
drakx-backup-do-not-use-508c371b5ffeab18487ed145f75625dad2acce87.tar.bz2
drakx-backup-do-not-use-508c371b5ffeab18487ed145f75625dad2acce87.tar.xz
drakx-backup-do-not-use-508c371b5ffeab18487ed145f75625dad2acce87.zip
add hack to use supplementary media
Diffstat (limited to 'tools')
-rwxr-xr-xtools/draklive8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/draklive b/tools/draklive
index c9b30998e..33d7846fe 100755
--- a/tools/draklive
+++ b/tools/draklive
@@ -461,6 +461,14 @@ sub install_system {
sub post_install_system {
my ($live) = @_;
+ foreach (@{$live->{system}{additional_media}}) {
+ run_({ root => get_system_root($live) }, 'urpmi.addmedia', ($_->{distrib} ? '--distrib' : 'draklive-media'), $_->{path})
+ or die "unable to add media from $_->{path}";
+ run_({ root => get_system_root($live) }, 'urpmi', '--auto', '--no-verify-rpm', @{$_->{packages}})
+ or die "unable to install packages from $_->{path}";
+ run_({ root => get_system_root($live) }, 'urpmi.removemedia', '-a');
+ }
+
if (@{$live->{system}{rpms}}) {
my $rpm_tmp_dir = '/tmp/draklive_rpms';
mkdir_p(get_system_root($live) . $rpm_tmp_dir);