If the user did not chose a distribution from the menu, a sensible
  default distribution (user) will be installed, however, no kernel
  will be installed.  Fix this by installing a sensible default kernel,
  SMP/GENERIC, depending on WITH_SMP and number of CPUS found.

Approved by:    re (hrs)
This commit is contained in:
erwin 2006-10-29 14:38:17 +00:00
parent d4e6b1ca4c
commit 67beb4298e
3 changed files with 4 additions and 1 deletions

View File

@ -210,7 +210,7 @@ distSetX(void)
return distSetXOrg(NULL);
}
static int
int
selectKernel(void)
{
#ifdef WITH_SMP

View File

@ -785,6 +785,8 @@ installCommit(dialogMenuItem *self)
/* select reasonable defaults if necessary */
if (!Dists)
Dists = _DIST_USER;
if (!KernelDists)
KernelDists = selectKernel();
}
if (!mediaVerify())

View File

@ -613,6 +613,7 @@ extern int distSetSrc(dialogMenuItem *self);
extern int distSetXOrg(dialogMenuItem *self);
extern int distSetKernel(dialogMenuItem *self);
extern int distExtractAll(dialogMenuItem *self);
extern int selectKernel(void);
/* dmenu.c */
extern int dmenuDisplayFile(dialogMenuItem *tmp);