From c029c604c11ccd41b6da1af6134ff37710c7f1e4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 9 Mar 2006 14:01:30 +0000 Subject: adapt to grub files in /lib/grub/*/ --- make_boot_img | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'make_boot_img') diff --git a/make_boot_img b/make_boot_img index 57b5b8be5..7a0024ef0 100755 --- a/make_boot_img +++ b/make_boot_img @@ -797,7 +797,8 @@ sub hd_grub { my ($img) = @_; my $mapfile = '/tmp/device.map.tmp'; - my @grub_files = map { "/boot/grub/$_" } qw(stage1 stage2); + my ($grub_dir) = glob("/lib/grub/*-*"); + my @grub_files = map { "$grub_dir/$_" } qw(stage1 stage2); my $size = 40_000 + sum(map { -s $_ } @grub_files); __ "$sudo umount $tmp_mnt 2>/dev/null"; -- cgit v1.2.1