diff options
author | Olivier Blin <oblin@mandriva.org> | 2006-03-07 11:40:58 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2006-03-07 11:40:58 +0000 |
commit | 508c371b5ffeab18487ed145f75625dad2acce87 (patch) | |
tree | d895605213a59da950bade33bd9ced6b11e82209 /tools | |
parent | ff0439d9f929d7ab237856197475d363eb3884ca (diff) | |
download | drakx-508c371b5ffeab18487ed145f75625dad2acce87.tar drakx-508c371b5ffeab18487ed145f75625dad2acce87.tar.gz drakx-508c371b5ffeab18487ed145f75625dad2acce87.tar.bz2 drakx-508c371b5ffeab18487ed145f75625dad2acce87.tar.xz drakx-508c371b5ffeab18487ed145f75625dad2acce87.zip |
add hack to use supplementary media
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/draklive | 8 |
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); |