summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/cdrom.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-06-14 18:23:26 +0000
committerjkh <jkh@FreeBSD.org>1996-06-14 18:23:26 +0000
commit0826bf5711fc2c4dbc7f0ebe9f34ce93f2bf18e7 (patch)
treeac8b118c2f1f4b4bb9d0406df21b73c8b8b41a5e /usr.sbin/sysinstall/cdrom.c
parent845782b7e052a1136c206b3e7ae58942a6a725bd (diff)
downloadFreeBSD-src-0826bf5711fc2c4dbc7f0ebe9f34ce93f2bf18e7.zip
FreeBSD-src-0826bf5711fc2c4dbc7f0ebe9f34ce93f2bf18e7.tar.gz
Make the CDROM auto-detection code a little more flexible about accepting
old CDs.
Diffstat (limited to 'usr.sbin/sysinstall/cdrom.c')
-rw-r--r--usr.sbin/sysinstall/cdrom.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/usr.sbin/sysinstall/cdrom.c b/usr.sbin/sysinstall/cdrom.c
index c8992f6..37ed166 100644
--- a/usr.sbin/sysinstall/cdrom.c
+++ b/usr.sbin/sysinstall/cdrom.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: cdrom.c,v 1.14 1996/06/08 07:02:17 jkh Exp $
+ * $Id: cdrom.c,v 1.15 1996/06/11 05:06:32 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -90,16 +90,15 @@ mediaInitCDROM(Device *dev)
msgConfirm("Error mounting %s on /cdrom: %s (%u)", dev->devname, strerror(errno), errno);
return FALSE;
}
- else if (file_readable("/cdrom/cdrom.inf"))
- cdromMounted = CD_WE_MOUNTED_IT;
- else {
- unmount("/cdrom", MNT_FORCE);
- msgConfirm("The CD currently in the drive is not a recent FreeBSD CDROM -\n"
- "ignoring it.\n\n"
- "If this is in error, please correct this problem now before\n"
- "attempting to use the CDROM as installation media.");
- return FALSE;
+ else if (!file_readable("/cdrom/cdrom.inf")) {
+ if (msgYesNo("Warning: The CD currently in the drive is either not a FreeBSD\n"
+ "CD or it is an older (pre 2.1.5) FreeBSD CD which does not\n"
+ "have a version number on it. Do you wish to use this CD anyway?")) {
+ unmount("/cdrom", MNT_FORCE);
+ return FALSE;
+ }
}
+ cdromMounted = CD_WE_MOUNTED_IT;
}
else
cdromMounted = CD_ALREADY_MOUNTED;
OpenPOWER on IntegriCloud