summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2006-02-08 13:31:28 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2006-02-08 13:31:28 +0000
commit84f83d087b872b904d7d879fde50d74d07d5b3e5 (patch)
treefb61351c17fd5b9fba20ba35b5f26088c56370f3
parent147a6fb2f0bdd55badd1e260fc731d908301f61a (diff)
downloaddrakx-backup-do-not-use-84f83d087b872b904d7d879fde50d74d07d5b3e5.tar
drakx-backup-do-not-use-84f83d087b872b904d7d879fde50d74d07d5b3e5.tar.gz
drakx-backup-do-not-use-84f83d087b872b904d7d879fde50d74d07d5b3e5.tar.bz2
drakx-backup-do-not-use-84f83d087b872b904d7d879fde50d74d07d5b3e5.tar.xz
drakx-backup-do-not-use-84f83d087b872b904d7d879fde50d74d07d5b3e5.zip
add possibility to use non -BOOT kernels for isolinux boot
-rwxr-xr-xmake_boot_img9
-rwxr-xr-xrescue/make_rescue_img4
2 files changed, 8 insertions, 5 deletions
diff --git a/make_boot_img b/make_boot_img
index cd9c0fd6d..25a9c8c52 100755
--- a/make_boot_img
+++ b/make_boot_img
@@ -37,12 +37,13 @@ _ "$sudo mkdir -p $tmp_mnt $tmp_mnt_initrd";
mkdir "images";
chomp(my $main = `cat kernel/all.kernels/.main`);
-my @kernels = grep { /^2/ } all('kernel/all.kernels');
+chomp(my $main_isolinux = (cat_('kernel/all.kernels/.isolinux'))[0]);
+my @kernels = grep { /^2/ && $_ !~ /^$main_isolinux$/ } all('kernel/all.kernels');
+$main_isolinux ||= $main;
my @all_images = (
- if_($arch =~ /i.86/, 'cdrom.img', 'cdrom-changedisk.img', 'pcmcia.img', 'isolinux', 'boot.iso', 'hd_grub.img', 'network.img', 'network_drivers.img'), #, 'ka.img'),
- if_($arch =~ /x86_64/, 'cdrom.img', 'cdrom-changedisk.img', 'pcmcia.img', 'isolinux', 'boot.iso', 'network.img', 'network_drivers.img'),
+ if_($arch =~ /i.86|x86_64/, 'cdrom.img', 'cdrom-changedisk.img', 'pcmcia.img', 'isolinux', 'boot.iso', 'hd_grub.img', 'network.img', 'network_drivers.img'), #, 'ka.img'),
if_($arch =~ /ia64/, 'all.img'),
);
@@ -60,7 +61,7 @@ foreach my $img (@images) {
if ($img =~ /hd_grub/) {
hd_grub($tmp_mnt, $img);
} elsif ($img =~ /isolinux/) {
- isolinux($main, @kernels);
+ isolinux($main_isolinux, @kernels);
if (my ($tftpboot) = grep { -e $_ } qw(/tftpboot /var/lib/tftpboot)) {
system("/bin/cp -f isolinux/alt0/* $tftpboot");
diff --git a/rescue/make_rescue_img b/rescue/make_rescue_img
index 8afbb4d4e..ad3aab571 100755
--- a/rescue/make_rescue_img
+++ b/rescue/make_rescue_img
@@ -87,7 +87,9 @@ foreach (cat_("aliases")) {
-e "../kernel/all.modules" or die "use ./update_kernel in gi/kernel first\n";
-chomp($main = `cat ../kernel/all.kernels/.main`);
+chomp(my $main_standard = `cat ../kernel/all.kernels/.main`);
+chomp(my $main_isolinux = (cat_('../kernel/all.kernels/.isolinux'))[0]);
+my $main = $main_isolinux or $main_standard;
_ "cp ../kernel/all.modules/modules.cz-$main $tmp/modules/modules.cz";
_ "cp ../kernel/all.modules/$main/modules.dep $tmp/modules";