[syslinux] [PATCH 01/05] utils/mkdiskimage.in: Option -s caused freshly created image files to be too small by a factor of 512.
Thomas Schmitt
scdbackup at gmx.net
Thu Jan 30 12:55:55 PST 2014
utils/mkdiskimage.in: Option -s caused freshly created image files to be too small by a factor of 512.
--- utils/mkdiskimage_orig.in 2014-01-23 12:23:34.000000000 +0100
+++ utils/mkdiskimage.in 2014-01-30 20:35:13.000000000 +0100
@@ -218,7 +218,7 @@ $totalsize = $c*$h*$s;
$tracks = $c*$h;
# If -s is given, try to simply use truncate...
-unless ($opt{'s'} && truncate(OUTPUT, $totalsize)) {
+unless ($opt{'s'} && truncate(OUTPUT, $totalsize * 512)) {
$track = "\0" x (512*$s);
# Print fractional track
More information about the Syslinux
mailing list