diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-03-29 22:47:09 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-03-29 22:47:09 +0000 |
commit | 84adb9036e99bc2e7560135694197b9312faa9e6 (patch) | |
tree | dfdc79ddfc972f2167c67ff96af51fbec5a7518c /rescue | |
parent | 094971eecb7a5df84b325de8c6ae46e88fc1f0ea (diff) | |
download | drakx-84adb9036e99bc2e7560135694197b9312faa9e6.tar drakx-84adb9036e99bc2e7560135694197b9312faa9e6.tar.gz drakx-84adb9036e99bc2e7560135694197b9312faa9e6.tar.bz2 drakx-84adb9036e99bc2e7560135694197b9312faa9e6.tar.xz drakx-84adb9036e99bc2e7560135694197b9312faa9e6.zip |
support more than one boot kernel :-)
Diffstat (limited to 'rescue')
-rwxr-xr-x | rescue/make_rescue_img | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/rescue/make_rescue_img b/rescue/make_rescue_img index 0ecd835a7..777ff286c 100755 --- a/rescue/make_rescue_img +++ b/rescue/make_rescue_img @@ -63,7 +63,14 @@ foreach (cat_("aliases")) { chomp; my ($f, $dest) = split; symlink $dest, "$tmp$f"; } -_ "cp ../modules/modules.{cz*,dep} $tmp/modules"; + +my @modulz = sort grep { -d $_ } glob("../all.modules/*"); +my $selected_mod = pop @modulz; +my ($kern) = $selected_mod =~ /.*\/([^\/]+)/; +print "\tChoosing kernel modules from $kern\n"; + +_ "cp ../all.modules/modules.cz$kern $tmp/modules/modules.cz"; +_ "cp ../all.modules/$kern/modules.dep $tmp/modules"; installown("drvinst", "/usr/bin"); |