From b23fe2afe076f88f6c0a74efc9688a5770cdb940 Mon Sep 17 00:00:00 2001 From: Sebastian Herbszt Date: Sun, 13 Jun 2010 23:00:39 +0200 Subject: [PATCH] gfxboot: set media type Set media type according to the drive number and cd mode. Signed-off-by: Sebastian Herbszt --- com32/gfxboot/gfxboot.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c index b3ee676..dd4d641 100644 --- a/com32/gfxboot/gfxboot.c +++ b/com32/gfxboot/gfxboot.c @@ -199,6 +199,12 @@ int main(int argc, char **argv) gfx_config.boot_drive = 0; } + gfx_config.media_type = gfx_config.boot_drive < 0x80 ? 1 : 0; + + if(sdi->c.filesystem == SYSLINUX_FS_ISOLINUX) { + gfx_config.media_type = sdi->iso.cd_mode ? 0 : 2; + } + gfx_config.bootloader = 1; gfx_config.sysconfig_size = sizeof gfx_config; gfx_config.bootloader_seg = 0; // apparently not needed -- 2.7.4