diff options
author | jkh <jkh@FreeBSD.org> | 1996-07-12 11:14:15 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-07-12 11:14:15 +0000 |
commit | 9b9952dd90c3f90e52a9ed9353801ce3313f83dd (patch) | |
tree | 8d69a0c48a81d30304bc275196093185da0c25df /usr.sbin/sysinstall/install.c | |
parent | 95254df1ef3ce9c7e4c30fc83748a3faeb5d7b32 (diff) | |
download | FreeBSD-src-9b9952dd90c3f90e52a9ed9353801ce3313f83dd.zip FreeBSD-src-9b9952dd90c3f90e52a9ed9353801ce3313f83dd.tar.gz |
Fix something I broke with CDROM installation (well, I knew my first
test CD would turn at least one bug up :-).
Diffstat (limited to 'usr.sbin/sysinstall/install.c')
-rw-r--r-- | usr.sbin/sysinstall/install.c | 10 |
1 files changed, 8 insertions, 2 deletions
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); |