]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2007-06-11 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Mon, 11 Jun 2007 20:01:09 +0000 (20:01 +0000)
committerrobertmh <robertmh@localhost>
Mon, 11 Jun 2007 20:01:09 +0000 (20:01 +0000)
* util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
not just the cdrom one.

ChangeLog
util/i386/pc/grub-mkrescue.in

index 5e615228e6c52e06e450ad48ca0d882fc3ea8b7f..febea88a0700002b97a3b58c5b9d062001525757 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-11  Robert Millan  <rmh@aybabtu.com>
+
+       * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
+       not just the cdrom one.
+
 2007-06-11  Robert Millan  <rmh@aybabtu.com>
 
        * util/i386/pc/grub-mkrescue.in: Add "set -e".
index 4e5583de53f6f87991ea52ffd42f5db76590c6bf..f397cae9cc18cf622096e6215f851feac8f4e526 100644 (file)
@@ -110,10 +110,9 @@ else
   floppy_image=`mktemp`
 fi
 
-cp ${input_dir}/boot.img $floppy_image
 core_img=`mktemp`
 ${grub_mkimage} -d ${input_dir}/ -o ${core_img} ${modules}
-cat ${core_img} >> $floppy_image
+cat ${input_dir}/boot.img ${core_img} /dev/zero | dd bs=1024 count=1440 > $floppy_image
 rm -f ${core_img}
 
 if [ "x${image_type}" = "xfloppy" ] ; then
@@ -121,7 +120,7 @@ if [ "x${image_type}" = "xfloppy" ] ; then
 fi
 
 iso_dir=`mktemp -d`
-cat ${floppy_image} /dev/zero | dd bs=1024 count=1440 > ${iso_dir}/floppy.img
+cp $floppy_image ${iso_dir}/floppy.img
 genisoimage -b floppy.img -o ${output_image} -r ${iso_dir}
 rm -rf ${iso_dir}