diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-03-25 15:03:09 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-03-25 15:03:09 -0700 |
commit | 3e2b0ea06d7592430b1474f7990ca7e66955e9fa (patch) | |
tree | e5a1e4418385f0984832240f61444ca1ed698aa9 | |
parent | c88cfe9b55681419a29c4e79fe1fbc20bd5f4fae (diff) | |
download | syslinux-3e2b0ea06d7592430b1474f7990ca7e66955e9fa.tar.gz |
pxelinux: don't rely on PXENV_GET_FILE_SIZE in gPXE support mode
Don't rely on PXENV_GET_FILE_SIZE in gPXE support mode. It sometimes
successfully returns wrong information.
-rw-r--r-- | pxelinux.asm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pxelinux.asm b/pxelinux.asm index 862fc479..00adc837 100644 --- a/pxelinux.asm +++ b/pxelinux.asm @@ -1373,10 +1373,14 @@ searchdir: mov di,gpxe_get_file_size mov [di+2],ax +%if 0 + ; Disable this for now since gPXE doesn't always + ; return valid information in PXENV_GET_FILE_SIZE mov bx,PXENV_GET_FILE_SIZE call pxenv mov eax,[di+4] ; File size jnc .oksize +%endif or eax,-1 ; Size unknown .oksize: mov [si+tftp_filesize],eax |