aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sade/install.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1998-03-10 13:42:05 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1998-03-10 13:42:05 +0000
commitbeb1c32dd3065500eb995d11b7d55cb1c33ba6cc (patch)
treeb45967662837f977e757dc6d77890228ea34b0a0 /usr.sbin/sade/install.c
parentf380a4f2e1fc035df0e0755453badecb5a99d8be (diff)
downloadsrc-beb1c32dd3065500eb995d11b7d55cb1c33ba6cc.tar.gz
src-beb1c32dd3065500eb995d11b7d55cb1c33ba6cc.zip
MF22: installEnvironment() fix, reshuffle, vidcontrol on correct vty.
Notes
Notes: svn path=/head/; revision=34466
Diffstat (limited to 'usr.sbin/sade/install.c')
-rw-r--r--usr.sbin/sade/install.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index c51e10ca7065..6c0635e959c0 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/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.205 1998/02/10 18:31:24 jkh Exp $
+ * $Id: install.c,v 1.206 1998/03/09 15:00:56 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -223,17 +223,16 @@ installInitial(void)
msgConfirm("Couldn't make filesystems properly. Aborting.");
return DITEM_FAILURE;
}
- else if (isDebug())
- msgDebug("installInitial: Scribbled successfully on the disk(s)\n");
if (!copySelf()) {
- msgConfirm("Couldn't clone the boot floppy onto the root file system.\n"
- "Aborting.");
+ msgConfirm("installInitial: Couldn't clone the boot floppy onto the\n"
+ "root file system. Aborting!");
return DITEM_FAILURE;
}
if (chroot("/mnt") == -1) {
- msgConfirm("Unable to chroot to %s - this is bad!", "/mnt");
+ msgConfirm("installInitial: Unable to chroot to %s - this is bad!",
+ "/mnt");
return DITEM_FAILURE;
}
@@ -704,6 +703,9 @@ try_media:
if (need_bin && !(Dists & DIST_BIN))
i = installFixup(self);
}
+ /* When running as init, *now* it's safe to grab the rc.foo vars */
+ installEnvironment();
+
variable_set2(SYSTEM_STATE, DITEM_STATUS(i) == DITEM_FAILURE ? "error-install" : "full-install");
return i | DITEM_RESTORE;