From 9b9952dd90c3f90e52a9ed9353801ce3313f83dd Mon Sep 17 00:00:00 2001 From: jkh Date: Fri, 12 Jul 1996 11:14:15 +0000 Subject: Fix something I broke with CDROM installation (well, I knew my first test CD would turn at least one bug up :-). --- usr.sbin/sysinstall/install.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'usr.sbin/sysinstall/install.c') diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c index 473a861..d17ca01 100644 --- a/usr.sbin/sysinstall/install.c +++ b/usr.sbin/sysinstall/install.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: install.c,v 1.111 1996/07/09 07:17:03 jkh Exp $ + * $Id: install.c,v 1.112 1996/07/09 14:28:16 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -373,6 +373,12 @@ installNovice(dialogMenuItem *self) if (!mediaDevice) { dialog_clear(); + /* Try to set ourselves up as a CDROM if we can do that first */ + if (DITEM_STATUS(mediaSetCDROM(NULL)) == DITEM_SUCCESS) { + /* If we can't initialize it, it's probably not a FreeBSD CDROM so punt on it */ + if (!mediaDevice->init(mediaDevice)) + mediaDevice = NULL; + } msgConfirm("Finally, you must specify an installation medium."); if (!dmenuOpenSimple(&MenuMedia, FALSE) || !mediaDevice) return DITEM_FAILURE | DITEM_RECREATE; @@ -711,7 +717,7 @@ installFilesystems(dialogMenuItem *self) } else { if (!upgrade) { - msgConfirm("Warning: Root device is selected read-only. It will be assumed\n" + msgConfirm("Warning: Using existing root partition. It will be assumed\n" "that you have the appropriate device entries already in /dev."); } msgNotify("Checking integrity of existing %s filesystem.", dname); -- cgit v1.1