21.11.2015 21:59, Andreas Färber пишет:
> Am 21.11.2015 um 06:49 schrieb Matwey V. Kornilov:
>> 21.11.2015 01:08, Andreas Färber пишет:
>>> Am 20.11.2015 um 20:09 schrieb Matwey V. Kornilov:
>>>> 16.11.2015 04:05, Andreas Färber пишет:
>>>>> Am 15.11.2015 um 19:50 schrieb Matwey V. Kornilov:
>>>>>> 2015-11-15 21:34 GMT+03:00 Andreas Färber <[email protected]>:
>>>>>>> Am 28.10.2015 um 19:07 schrieb Matwey V. Kornilov:
>>>>>>>> I've just looked through perl-bootloader. It is not so hard to 
>>>>>>>> implement
>>>>>>>> additional module Extlinux.pm, given there is hardware support to test.
>>>>>>>> But I would say that to implement extlinux support seems to be way
>>>>>>>> easier than direct u-boot anyway.
>>>>>>>> Patching perl-bootloader should be sufficient for correct operation of
>>>>>>>> kernel RPM post/pre scripts.
>>>>>>>
>>>>>>> Have you looked further into implementing this?
>>>>>>>
>>>>>>> I am testing changes to dtb-source, but I do not have a good solution
>>>>>>> for /boot/dtb symlink yet. Switching to extlinux would elegantly avoid
>>>>>>> tackling that. ;)
>>>>>>
>>>>>> I've just tested that extlinux worked.
>>>>>> I am going to start to implement initial support into perl-bootloader,
>>>>>
>>>>> Great, then I'll leave my hands off.
>>>>>
>>>>> I gathered that /etc/sysconfig/bootloader would need
>>>>> LOADER_TYPE="extlinux", and Library.pm:SetLoaderType() would need to
>>>>> handle "extlinux" to instantiate your new Core/Extlinux.pm.
>>>>> https://github.com/openSUSE/perl-bootloader
>>>>
>>>> https://github.com/openSUSE/perl-bootloader/pull/81
>>>
>>> Looks promising, do you have it packaged for testing?
>>
>> https://build.opensuse.org/package/show/home:matwey:branches:Base:System/perl-Bootloader
> 
> When I run `update-bootloader --refresh` with my custom extlinux.conf in
> place, it appears to parse it okay and the file appears to be
> unmodified, not even getting a new date to my surprise.
> 

As it should be, perl-bootloader checks if you need modifications and
don't touch the file if you don't.
--add and --remove commands work as expected (they of course do nothing
with FDT not).

> However, when I do not have /boot/extlinux/ or
> /boot/extlinux/extlinux.conf in place and run `update-bootloader
> --reinit`, it complains:
> 
>     Perl-Bootloader: 2015-11-21 19:44:04 <3> pbl-5624.2
> FileIO::ReadFileRaw.168: Error: Failed to open
> /boot/extlinux/extlinux.conf: No such file or directory
> 
> `--force` does not help either. /var/log/pbl.log did not show errors.
> 
> Shouldn't it generate some default config for either --refresh or
> --reinit when absent?

This is gray area for me, because none of existing modules does so (they
have 'default' options but not write them out actually). I think the
better solution is to place initial extlinux.conf into some RPM package
where default values can be adjusted much simpler.

> 
> Regards,
> Andreas
> 


-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to