From 84adb9036e99bc2e7560135694197b9312faa9e6 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 29 Mar 2001 22:47:09 +0000 Subject: support more than one boot kernel :-) --- rescue/make_rescue_img | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'rescue/make_rescue_img') 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"); -- cgit v1.2.1