summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-03-29 22:47:09 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-03-29 22:47:09 +0000
commit84adb9036e99bc2e7560135694197b9312faa9e6 (patch)
treedfdc79ddfc972f2167c67ff96af51fbec5a7518c /rescue
parent094971eecb7a5df84b325de8c6ae46e88fc1f0ea (diff)
downloaddrakx-backup-do-not-use-84adb9036e99bc2e7560135694197b9312faa9e6.tar
drakx-backup-do-not-use-84adb9036e99bc2e7560135694197b9312faa9e6.tar.gz
drakx-backup-do-not-use-84adb9036e99bc2e7560135694197b9312faa9e6.tar.bz2
drakx-backup-do-not-use-84adb9036e99bc2e7560135694197b9312faa9e6.tar.xz
drakx-backup-do-not-use-84adb9036e99bc2e7560135694197b9312faa9e6.zip
support more than one boot kernel :-)
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/make_rescue_img9
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");