[OE-core] [PATCH] kernel: Stop using update-alternatives

Otavio Salvador otavio.salvador at ossystems.com.br
Fri Sep 1 17:39:28 UTC 2017


On Fri, Sep 1, 2017 at 2:07 PM, Saul Wold <sgw at linux.intel.com> wrote:
> On Thu, 2017-08-31 at 18:34 -0300, Otavio Salvador wrote:
>> The update-alternatives where using relative links so not being
>> really
>> in use since December 2016 (see OE-Core:c7bc46b9 "kernel: Fix
>> symlinks") so instead we now generate the relative symlinks during
>> the
>> do_install task and drop the update-alternatives use at all.
>>
> Is there a reason not to fix the U-A usage of the relative links?

Conceptually the update-alternatives use is wrong as the database is
on /etc and /boot can potentially be in another partition and loaded
directly so relative links are required ...

In fact using symbolic links is not used in generic distributions as
they generate the boot script as post inst action so user can choose
which to boot but for our use case, it makes sense.


> How will this affect the installation of multiple kernels?
> for example with Haris's patch: http://lists.openembedded.org/pipermail
> /openembedded-core/2017-August/140996.html

It can be adapted to work with it; we could, for example, use the
KERNEL_NAME to be a prefix or suffix for the image and device tree
binaries.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list