When booting from a hard disk image (e.g. bin/ipxe.usb) within an emulator such as QEMU, the disk may not exist beyond the end of the image. Limit all reads to the length of the image to avoid spurious errors when loading the iPXE image. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
||
27 | 27 |
|
28 | 28 |
|
29 | 29 |
|
30 |
|
|
30 |
|
|
31 | 31 |
|
32 | 32 |
|
33 | 33 |
|
34 | 34 |
|
35 | 35 |
|
36 | 36 |
|
37 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
38 | 42 |
|
39 | 43 |
|
40 | 44 |
|
|
||
53 | 57 |
|
54 | 58 |
|
55 | 59 |
|
56 |
|
|
60 |
|
|
57 | 61 |
|
58 | 62 |
|
59 |
|
|
63 |
|
|
60 | 64 |
|
61 |
|
|
65 |
|
|
62 | 66 |
|
63 | 67 |
|
64 | 68 |
|