diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 2001-03-12 22:50:04 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 2001-03-12 22:50:04 +0000 |
| commit | 8363123c055ee944425a19e65d9de27578f930cf (patch) | |
| tree | ed9993392ea32157463a4c423d353fc99c12908c /release/sysinstall/install.c | |
| parent | aa5d0a20777ad9b0ac72c64b4b9dad90d2acafba (diff) | |
Notes
Diffstat (limited to 'release/sysinstall/install.c')
| -rw-r--r-- | release/sysinstall/install.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/release/sysinstall/install.c b/release/sysinstall/install.c index 4c51dac1f30e..318c7bab80c0 100644 --- a/release/sysinstall/install.c +++ b/release/sysinstall/install.c @@ -748,6 +748,16 @@ installFixupBin(dialogMenuItem *self) /* All of this is done only as init, just to be safe */ if (RunningAsInit) { + /* Fix up kernel first */ + if (!file_readable("/kernel")) { + char *generic_kernel = "/kernel.GENERIC"; + if (file_readable(generic_kernel)) { + if (vsystem("cp -p %s /kernel", generic_kernel)) { + msgConfirm("Unable to copy /kernel into place!"); + return DITEM_FAILURE; + } + } + } #ifdef __i386__ /* Snapshot any boot -c changes back to the new kernel */ cp = variable_get(VAR_KGET); |
