summaryrefslogtreecommitdiffstats
path: root/loader/modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader/modules.c')
-rw-r--r--loader/modules.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/loader/modules.c b/loader/modules.c
index 2706dcfc7..afbd2b6b4 100644
--- a/loader/modules.c
+++ b/loader/modules.c
@@ -263,6 +263,10 @@ int mlWriteConfModules(moduleList list, moduleInfoSet modInfo, int fd) {
if ((mi = isysFindModuleInfo(modInfo, lm->name))) {
strcpy(buf, "alias ");
switch (mi->major) {
+ case DRIVER_CDROM:
+ strcat(buf, "cdrom ");
+ break;
+
case DRIVER_SCSI:
if (scsiNum)
sprintf(buf2, "scsi_hostadapter%d ", scsiNum);