summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2002-04-13 12:44:18 +0000
committermurray <murray@FreeBSD.org>2002-04-13 12:44:18 +0000
commit3a0bf4f01835c325d7e82ce9e8014e0eaf8ea19e (patch)
tree1bba79cb8b8a6a6fbb407e896795df8ae2eae454 /usr.sbin/sysinstall
parentd572260358b6e8262d28cbd3cd887503306aae3a (diff)
downloadFreeBSD-src-3a0bf4f01835c325d7e82ce9e8014e0eaf8ea19e.zip
FreeBSD-src-3a0bf4f01835c325d7e82ce9e8014e0eaf8ea19e.tar.gz
Read the CD_VOLUME property from the cdrom.inf file and use it to
initialize the volume ID for the media device in use.
Diffstat (limited to 'usr.sbin/sysinstall')
-rw-r--r--usr.sbin/sysinstall/cdrom.c7
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)
OpenPOWER on IntegriCloud