summaryrefslogtreecommitdiffstats
path: root/images/make_boot_img
diff options
context:
space:
mode:
Diffstat (limited to 'images/make_boot_img')
-rwxr-xr-ximages/make_boot_img3
1 files changed, 2 insertions, 1 deletions
diff --git a/images/make_boot_img b/images/make_boot_img
index 613affd9a..146f44220 100755
--- a/images/make_boot_img
+++ b/images/make_boot_img
@@ -234,7 +234,8 @@ sub boot_img_i386 {
unlink $rdz;
# mtools wants the image to be a power of 32
- my $size = max(ceil(chomp_(`du -s -k $tmp_mnt`) / 32) * 32 + 128, 1440);
+ my $syslinux_overhead = 32 * 8;
+ my $size = max(ceil(chomp_(`du -s -k $tmp_mnt`) / 32) * 32 + $syslinux_overhead, 1440);
_ "dd if=/dev/zero of=$img bs=1k count=$size";
_ "/sbin/mkdosfs $img";