diff options
author | Olivier Blin <oblin@mandriva.org> | 2006-02-13 20:18:40 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2006-02-13 20:18:40 +0000 |
commit | e566d7555753c255de5ad5e9fdad1c920291df60 (patch) | |
tree | 3b973cd62d95574fe9cad13111c4b58b4a6ff45f | |
parent | 68ad02b6a17b8be25f3f1761906f6257d8bc3813 (diff) | |
download | drakx-e566d7555753c255de5ad5e9fdad1c920291df60.tar drakx-e566d7555753c255de5ad5e9fdad1c920291df60.tar.gz drakx-e566d7555753c255de5ad5e9fdad1c920291df60.tar.bz2 drakx-e566d7555753c255de5ad5e9fdad1c920291df60.tar.xz drakx-e566d7555753c255de5ad5e9fdad1c920291df60.zip |
fallback on ide-generic if needed (requested by support team for the Equilinux project)
-rw-r--r-- | mdk-stage1/cdrom.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mdk-stage1/cdrom.c b/mdk-stage1/cdrom.c index a6d0ab726..7bb0358ff 100644 --- a/mdk-stage1/cdrom.c +++ b/mdk-stage1/cdrom.c @@ -146,6 +146,7 @@ enum return_type cdrom_prepare(void) char * choice; int i, count = 0; enum return_type results; + static int already_probed_ide_generic = 0; my_insmod("ide-cd", ANY_DRIVER_TYPE, NULL, 0); @@ -176,6 +177,11 @@ enum return_type cdrom_prepare(void) } if (count == 0) { + if (!already_probed_ide_generic) { + already_probed_ide_generic = 1; + my_insmod("ide-generic", ANY_DRIVER_TYPE, NULL, 0); + return cdrom_prepare(); + } stg1_error_message("No CDROM device found."); i = ask_insmod(SCSI_ADAPTERS); if (i == RETURN_BACK) |