summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-19 14:53:59 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-19 14:53:59 +0000
commit38bb20f8b0af585e6b01d9a23eee1fb5361f3d30 (patch)
tree4d952303a3a562c26f8f6186f3520543269c0af8
parent9928adf3d60a964efa9b523009c55093f9458a13 (diff)
downloaddraklive-38bb20f8b0af585e6b01d9a23eee1fb5361f3d30.tar
draklive-38bb20f8b0af585e6b01d9a23eee1fb5361f3d30.tar.gz
draklive-38bb20f8b0af585e6b01d9a23eee1fb5361f3d30.tar.bz2
draklive-38bb20f8b0af585e6b01d9a23eee1fb5361f3d30.tar.xz
draklive-38bb20f8b0af585e6b01d9a23eee1fb5361f3d30.zip
copy additional modules after plain modules, so that they can overwrite them
-rwxr-xr-xdraklive2
1 files changed, 1 insertions, 1 deletions
diff --git a/draklive b/draklive
index 22eb0d8..f330709 100755
--- a/draklive
+++ b/draklive
@@ -483,7 +483,6 @@ sub create_initrd_for_media {
($live->{mount}{overlay} ? @{$overlay{$live->{mount}{overlay}}{modules} || []} : ());
my @additional_modules = map { m!([^/]+)\.ko! } @{$live->{system}{additional_modules}};
- cp_f((map { $live->{settings}{config_root} . '/' . $_ } @{$live->{system}{additional_modules}}), $initrd_tree . "/lib/");
my @missing = sort(difference2($extra_missing, \@additional_modules));
@missing and die "missing mandatory modules:\n" . join("\n", @missing);
@@ -498,6 +497,7 @@ sub create_initrd_for_media {
mkdir_p($initrd_tree . "/lib");
run_program::run('gzip', '>', $initrd_tree . "/lib/$_.ko", '-dc', get_system_root($live) . $moddeps{$_}{full})
foreach @module_deps, @$modules;
+ cp_f((map { $live->{settings}{config_root} . '/' . $_ } @{$live->{system}{additional_modules}}), $initrd_tree . "/lib/");
@$skipped and print STDERR "skipped modules: " . join(' ', sort(@$skipped)) . "\n";