diff options
-rwxr-xr-x | draklive | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; |