aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-07-23 17:23:04 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-07-23 17:23:04 -0700
commitbb401428c514a70e9f2fba21449599b634bcd5db (patch)
tree768d2603688fdde4867b023113da4f05010068ec /com32/modules
parentfdc246e2f9df9db4eb141a58e20a7272598345b4 (diff)
downloadsyslinux.git-bb401428c514a70e9f2fba21449599b634bcd5db.tar.gz
syslinux.git-bb401428c514a70e9f2fba21449599b634bcd5db.tar.xz
syslinux.git-bb401428c514a70e9f2fba21449599b634bcd5db.zip
chain.c32: set DL properly when loaded from ISOLINUX
When loaded from ISOLINUX, we still have a valid boot drive. Set it! This permits the use of chainloaded boot loaders. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/modules')
-rw-r--r--com32/modules/chain.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index 7c7c9eb6..0b6dbc2f 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -666,8 +666,7 @@ int main(int argc, char *argv[])
} else if (!strcmp(drivename, "boot")) {
const union syslinux_derivative_info *sdi;
sdi = syslinux_derivative_info();
- if (sdi->c.filesystem == SYSLINUX_FS_PXELINUX ||
- sdi->c.filesystem == SYSLINUX_FS_ISOLINUX)
+ if (sdi->c.filesystem == SYSLINUX_FS_PXELINUX)
drive = 0x80; /* Boot drive not available */
else
drive = sdi->disk.drive_number;