summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-01-24 10:37:52 +0000
committerColin Guthrie <colin@mageia.org>2014-01-24 10:37:52 +0000
commit856a5f653d6ec7afeceda5f10277ca320fd17725 (patch)
tree8b40cd7c1c3d126abc0a0ceab5ce21b1b19dd55b /images
parent55285b794819cf8e1b284b37e66a1afd8920fda6 (diff)
downloaddrakx-856a5f653d6ec7afeceda5f10277ca320fd17725.tar
drakx-856a5f653d6ec7afeceda5f10277ca320fd17725.tar.gz
drakx-856a5f653d6ec7afeceda5f10277ca320fd17725.tar.bz2
drakx-856a5f653d6ec7afeceda5f10277ca320fd17725.tar.xz
drakx-856a5f653d6ec7afeceda5f10277ca320fd17725.zip
images: Double syslinux overhead to 256. mga#11795
Diffstat (limited to 'images')
-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";