summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-04-02 16:59:41 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-04-02 16:59:41 +0000
commit563658f7384bf9ff32ae74c8598044f35e05e016 (patch)
treefb93544ef677eb94f9f53385af3c016f5d6c5d1c /rescue
parentcbcc426347090465871a5d05997bbf9aa81136f1 (diff)
downloaddrakx-backup-do-not-use-563658f7384bf9ff32ae74c8598044f35e05e016.tar
drakx-backup-do-not-use-563658f7384bf9ff32ae74c8598044f35e05e016.tar.gz
drakx-backup-do-not-use-563658f7384bf9ff32ae74c8598044f35e05e016.tar.bz2
drakx-backup-do-not-use-563658f7384bf9ff32ae74c8598044f35e05e016.tar.xz
drakx-backup-do-not-use-563658f7384bf9ff32ae74c8598044f35e05e016.zip
fix pixelization (aka take advantage of all.kernels/.main)
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/make_rescue_img9
1 files changed, 3 insertions, 6 deletions
diff --git a/rescue/make_rescue_img b/rescue/make_rescue_img
index 777ff286c..c100f9594 100755
--- a/rescue/make_rescue_img
+++ b/rescue/make_rescue_img
@@ -64,13 +64,10 @@ foreach (cat_("aliases")) {
symlink $dest, "$tmp$f";
}
-my @modulz = sort grep { -d $_ } glob("../all.modules/*");
-my $selected_mod = pop @modulz;
-my ($kern) = $selected_mod =~ /.*\/([^\/]+)/;
-print "\tChoosing kernel modules from $kern\n";
+chomp($main = `cat ../all.kernels/.main`);
-_ "cp ../all.modules/modules.cz$kern $tmp/modules/modules.cz";
-_ "cp ../all.modules/$kern/modules.dep $tmp/modules";
+_ "cp ../all.modules/modules.cz-$main $tmp/modules/modules.cz";
+_ "cp ../all.modules/$main/modules.dep $tmp/modules";
installown("drvinst", "/usr/bin");