diff options
| author | Michael Brown | 2009-04-16 04:15:08 +0200 |
|---|---|---|
| committer | Michael Brown | 2009-04-16 04:15:08 +0200 |
| commit | 7741546a406217827c3d4a8d72aaa322b2565c35 (patch) | |
| tree | a871a7879a035e76ae17cc096dc5317e4d8f400c /src/util/dskpad.pl | |
| parent | [dhcp] Accept filename via DHCP option 67 as well as BOOTP filename field (diff) | |
| download | ipxe-7741546a406217827c3d4a8d72aaa322b2565c35.tar.gz ipxe-7741546a406217827c3d4a8d72aaa322b2565c35.tar.xz ipxe-7741546a406217827c3d4a8d72aaa322b2565c35.zip | |
[build] Pad .rom, .dsk, and .hd images to 512-byte boundaries
QEMU will silently round down a disk or ROM image file to the nearest
512 bytes. Fix by always padding .rom, .dsk and .hd images to the
nearest 512-byte boundary.
Originally-fixed-by: Stefan Hajnoczi <stefanha@gmail.com>
Diffstat (limited to 'src/util/dskpad.pl')
| -rwxr-xr-x | src/util/dskpad.pl | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/util/dskpad.pl b/src/util/dskpad.pl deleted file mode 100755 index 3ae325eb4..000000000 --- a/src/util/dskpad.pl +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/perl -w - -use strict; -use warnings; - -use constant FLOPPYSIZE => 1440 * 1024; - -while ( my $filename = shift ) { - die "$filename is not a file\n" unless -f $filename; - die "$filename is too large\n" unless ( -s $filename <= FLOPPYSIZE ); - truncate $filename, FLOPPYSIZE or die "Could not truncate: $!\n"; -} |
