aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ahci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ahci.c b/src/ahci.c
index e2b2dbf5..70c0f1cb 100644
--- a/src/ahci.c
+++ b/src/ahci.c
@@ -395,8 +395,10 @@ ahci_port_init(struct ahci_ctrl_s *ctrl, u32 pnr)
, (iscd ? "DVD/CD" : "Device"));
// fill cdidmap
- if (iscd)
+ if (iscd) {
map_cd_drive(&port->drive);
+ add_baid_cdrom(&port->drive);
+ }
}
dprintf(1, "%s\n", port->drive.desc);