diff options
Diffstat (limited to 'usr.sbin/sysinstall')
-rw-r--r-- | usr.sbin/sysinstall/cdrom.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/cdrom.c b/usr.sbin/sysinstall/cdrom.c index a379373..3b55be7 100644 --- a/usr.sbin/sysinstall/cdrom.c +++ b/usr.sbin/sysinstall/cdrom.c @@ -170,6 +170,13 @@ mediaInitCDROM(Device *dev) return FALSE; } } + if ((cp = property_find(cd_attr, "CD_VOLUME")) != NULL) { + dev->volume = atoi(cp); + /* XXX - Sanity check the volume here? */ + msgDebug("CD Volume %d initialized!\n", dev->volume); + } else { + dev->volume = 0; + } } } if (cd_attr) |