[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#805223: base-installer unable to determine kernel



Dnia 15 listopad 2015 o 22:54 Ben Hutchings <ben@decadent.org.uk> napisał(a):
> On Sun, 2015-11-15 at 22:17 +0100, Łukasz Stelmach wrote:
>> During the installation I get a message that the installer was unable to
>> find appropriate kernel package for the device.
>> 
>>     No installable kernel was found in the defined APT sources. [...]
>> 
>> I have traced the the message and it comes from pick_kernel() in
>> /usr/lib//base-installer/library.sh. In /var/log/syslog I find a message
>> 
>>     Jan  1 00:52:06 base-installer: info: could not determine kernel flavour
>> 
>> repeated several times and followed by
>> 
>>     Jan  1 00:52:06 base-installer: info: Found kernels ''
>> 
>> A very brief investigation suggests that that the problems comes from
>> the references to unassigned $FLAVOUR variable.
> 
> Unassigned, or empty?

It's hard to tell precisely. FLAVOUR is not assigned any value in
library.sh explicitly AND "$FLAVOUR" apparently evaluates to "" at
line 352[1].

>> I may only suspect that
>> the code containing $FLAVOUR has been moved from some file without
>> moving actual assignment (like the one in
>> debian/bootstrap-base.postinst)
> [...]
> 
> These functions are only ever called by debian/bootstrap-base.postinst.
> I think the problem is that arch_get_kernel_flavour is failing.

I have never said they are. I only gave the postinst script as an example
of a place where FLAVOUR is assigned. Do you know of any other place?

> This definitely doesn't seem like a proper fix.

Then what is in your opinion KERNEL_FLAVOUR for? It can't but ask why
there are two variables with apparently the same value (or at least
values from the same set).

I will try the fix suggested by Martin Michlmayr and see if it works.
 
[1] https://sources.debian.net/src/base-installer/1.154/library.sh/#L352 

-- 
Miłego dnia,
Łukasz Stelmach


Reply to: