summaryrefslogtreecommitdiffstats
path: root/make_boot_img
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-03-09 14:01:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-03-09 14:01:30 +0000
commitc029c604c11ccd41b6da1af6134ff37710c7f1e4 (patch)
treef5446639673c11fe813197d3f958b787f16b6def /make_boot_img
parent4a4b4b4d05f21ed07a8b7bbafc2ca38a7d4970ab (diff)
downloaddrakx-c029c604c11ccd41b6da1af6134ff37710c7f1e4.tar
drakx-c029c604c11ccd41b6da1af6134ff37710c7f1e4.tar.gz
drakx-c029c604c11ccd41b6da1af6134ff37710c7f1e4.tar.bz2
drakx-c029c604c11ccd41b6da1af6134ff37710c7f1e4.tar.xz
drakx-c029c604c11ccd41b6da1af6134ff37710c7f1e4.zip
adapt to grub files in /lib/grub/*/
Diffstat (limited to 'make_boot_img')
-rwxr-xr-xmake_boot_img3
1 files changed, 2 insertions, 1 deletions
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";