diff options
author | jkh <jkh@FreeBSD.org> | 1996-10-04 13:33:49 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-10-04 13:33:49 +0000 |
commit | 177253487a1d661372770b14ca3e756f73157f30 (patch) | |
tree | 880800002f5fc0da5926f527fa9a99340d429598 /usr.sbin/sysinstall/install.c | |
parent | 82c3fac15a288402754df8d2115aca659980dec9 (diff) | |
download | FreeBSD-src-177253487a1d661372770b14ca3e756f73157f30.zip FreeBSD-src-177253487a1d661372770b14ca3e756f73157f30.tar.gz |
Syncronize my tree so Eric can access the latest code.
Diffstat (limited to 'usr.sbin/sysinstall/install.c')
-rw-r--r-- | usr.sbin/sysinstall/install.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c index e787d6f..5b052e4 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.125 1996/10/03 08:17:16 jkh Exp $ + * $Id: install.c,v 1.126 1996/10/03 08:54:37 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -594,6 +594,9 @@ installFixup(dialogMenuItem *self) if (!file_readable("/kernel")) { if (file_readable("/kernel.GENERIC")) { + /* Snapshot any boot -c changes back to the GENERIC kernel */ + save_userconfig_to_kernel("/kernel.GENERIC"); + if (vsystem("cp -p /kernel.GENERIC /kernel")) { msgConfirm("Unable to link /kernel into place!"); return DITEM_FAILURE; @@ -607,11 +610,6 @@ installFixup(dialogMenuItem *self) } } -#ifdef notyet - /* Snapshot any boot -c changes back to the GENERIC kernel */ - save_userconfig_to_kernel("/kernel"); -#endif - /* Resurrect /dev after bin distribution screws it up */ if (RunningAsInit) { msgNotify("Remaking all devices.. Please wait!"); @@ -680,6 +678,10 @@ installFilesystems(dialogMenuItem *self) extern int MakeDevChunk(Chunk *c, char *n); Boolean upgrade = FALSE; + /* If we've already done this, bail out */ + if (variable_get(DISK_PREPARED)) + return DITEM_SUCCESS; + str = variable_get(SYSTEM_STATE); if (!checkLabels(TRUE, &rootdev, &swapdev, &usrdev, &vardev)) @@ -820,6 +822,7 @@ installFilesystems(dialogMenuItem *self) command_sort(); command_execute(); + variable_set2(DISK_PREPARED, "yes"); return DITEM_SUCCESS; } |