diff options
author | Sebastian Herbszt <herbszt@gmx.de> | 2010-06-13 23:00:39 +0200 |
---|---|---|
committer | Sebastian Herbszt <herbszt@gmx.de> | 2010-06-13 23:00:39 +0200 |
commit | b23fe2afe076f88f6c0a74efc9688a5770cdb940 (patch) | |
tree | c68c5f2785698d7dfcfdff816d32c6f1bcce4afe /com32/gfxboot/gfxboot.c | |
parent | 289305bafc4a616f48d3b94e1c1d72502ad45aab (diff) | |
download | syslinux-b23fe2afe076f88f6c0a74efc9688a5770cdb940.tar.gz |
gfxboot: set media type
Set media type according to the drive number and cd mode.
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Diffstat (limited to 'com32/gfxboot/gfxboot.c')
-rw-r--r-- | com32/gfxboot/gfxboot.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c index b3ee6769..dd4d6410 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 |