diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-03-09 14:01:30 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-03-09 14:01:30 +0000 |
commit | c029c604c11ccd41b6da1af6134ff37710c7f1e4 (patch) | |
tree | f5446639673c11fe813197d3f958b787f16b6def /make_boot_img | |
parent | 4a4b4b4d05f21ed07a8b7bbafc2ca38a7d4970ab (diff) | |
download | drakx-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-x | make_boot_img | 3 |
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"; |