summaryrefslogtreecommitdiffstats
path: root/images/make_boot_img
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-09 10:45:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-09 10:45:56 +0000
commitb4222fa105800fd7ad0c75d92fbe00c558f2cee3 (patch)
treea84c435d2389a8b3e34f6e62d8a5d6d23219e9e1 /images/make_boot_img
parent5250450dd9f863938bd6d7bc0643099e796d138b (diff)
downloaddrakx-b4222fa105800fd7ad0c75d92fbe00c558f2cee3.tar
drakx-b4222fa105800fd7ad0c75d92fbe00c558f2cee3.tar.gz
drakx-b4222fa105800fd7ad0c75d92fbe00c558f2cee3.tar.bz2
drakx-b4222fa105800fd7ad0c75d92fbe00c558f2cee3.tar.xz
drakx-b4222fa105800fd7ad0c75d92fbe00c558f2cee3.zip
- update_kernel: now require install rpms or rpm files as arguments
(this allow specifying precisely which installed kernels are used) nb: - RPMS/ is not used anymore, pkgs given an command line are installed directly in all.kernels/ - RPMS/.main is replaced by all.kernels/.list which keeps the ordering of kernels given to update_kernel
Diffstat (limited to 'images/make_boot_img')
-rwxr-xr-ximages/make_boot_img6
1 files changed, 2 insertions, 4 deletions
diff --git a/images/make_boot_img b/images/make_boot_img
index ed56e0ec3..e08e50ef5 100755
--- a/images/make_boot_img
+++ b/images/make_boot_img
@@ -32,9 +32,7 @@ sub mke2fs {
_ "mkdir -p $tmp_mnt";
mkdir "images";
-my @kernels = all('all.kernels');
-my $main = chomp_(cat_('RPMS/.main')) || $kernels[0];
-@kernels = uniq($main, @kernels);
+my @kernels = chomp_(cat_('all.kernels/.list'));
my @all_images = (
if_($arch =~ /i.86/, 'isolinux', 'boot.iso', 'all.img', 'hd_grub.img'),
@@ -63,7 +61,7 @@ foreach my $img (@images) {
} elsif ($extension eq 'img') {
print STDERR "calling boot_img_$arch for $img\n";
$::{"boot_img_$arch"}->($type, $I, "$img-$_", "all.kernels/$_/vmlinuz") foreach @kernels;
- rename("$img-$main", $img);
+ rename("$img-$kernels[0]", $img);
} else {
die "unknown image $img";
}