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.

Reviewed by:    jhb
This commit is contained in:
Erwin Lansing 2006-10-23 20:49:49 +00:00
parent bc968064a9
commit 82336c7dbb
3 changed files with 4 additions and 1 deletions

View File

@ -211,7 +211,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

@ -616,6 +616,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);