diff options
author | jkh <jkh@FreeBSD.org> | 1998-09-30 20:33:56 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-09-30 20:33:56 +0000 |
commit | c403946797088197ae41fe85c44b44575b2075f1 (patch) | |
tree | 601327b5472a7b8b2fc29240145f5da664c8787e /release | |
parent | 526ee0d833e330086b7d1a6c4deafaa6724a6fd3 (diff) | |
download | FreeBSD-src-c403946797088197ae41fe85c44b44575b2075f1.zip FreeBSD-src-c403946797088197ae41fe85c44b44575b2075f1.tar.gz |
More save_userconfig to a more appropriate spot.
Diffstat (limited to 'release')
-rw-r--r-- | release/sysinstall/install.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/release/sysinstall/install.c b/release/sysinstall/install.c index aaee155..60c599a 100644 --- a/release/sysinstall/install.c +++ b/release/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.211 1998/09/29 05:12:39 jkh Exp $ + * $Id: install.c,v 1.212 1998/09/29 14:23:13 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -744,15 +744,15 @@ installFixup(dialogMenuItem *self) if (!file_readable("/kernel")) { if (file_readable("/kernel.GENERIC")) { -#ifdef SAVE_USERCONFIG - /* Snapshot any boot -c changes back to the GENERIC kernel */ - if (!variable_cmp(VAR_RELNAME, RELEASE_NAME)) - save_userconfig_to_kernel("/kernel.GENERIC"); -#endif if (vsystem("cp -p /kernel.GENERIC /kernel")) { msgConfirm("Unable to link /kernel into place!"); return DITEM_FAILURE; } +#ifdef SAVE_USERCONFIG + /* Snapshot any boot -c changes back to the new kernel */ + if (!variable_cmp(VAR_RELNAME, RELEASE_NAME)) + save_userconfig_to_kernel("/kernel"); +#endif } else { msgConfirm("Can't find a kernel image to link to on the root file system!\n" |