[syslinux] [PATCH] gfxboot.c: gfx_media_type setting implemented for isolinux

Anton V. Boyarshinov boyarsh at altlinux.org
Thu May 27 02:43:19 PDT 2010


Hello
Here is a small patch, implementing gfx_media_type calculation when 
isolinux is used.

Reagrds,
Anton


From a58d7222c5ddf23bbea91b0356c872b6877798cc Mon Sep 17 00:00:00 2001
From: Anton V. Boyarshinov <boyarsh at altlinux.org>
Date: Thu, 27 May 2010 12:50:17 +0400
Subject: [PATCH] gfxboot.c: gfx_media_type setting implemented for isolinux

---
 com32/gfxboot/gfxboot.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c
index a6c95fe..ae34598 100644
--- a/com32/gfxboot/gfxboot.c
+++ b/com32/gfxboot/gfxboot.c
@@ -197,6 +197,10 @@ int main(int argc, char **argv)
   __intcall(0x22, &r, &r);
   gfx_config.sector_shift = (uint8_t) r.ecx.l;
   gfx_config.boot_drive = (uint8_t) r.edx.l;
+  
+  if(r.eax.l == 0x33) { // isolinux
+    gfx_config.media_type = (uint8_t) r.ecx.b[1]?0:2; //CD if El Torito, else HD
+  }
 
   if(syslinux_id == SYSLINUX_FS_PXELINUX) {
     gfx_config.sector_shift = 11;
-- 
1.7.0.4




More information about the Syslinux mailing list