How to dynamically add a repository in FAI?
Alex Ingle
ingle.as at gmail.com
Fri Sep 4 15:08:05 CEST 2009
Hello Michael,
Thank you for your help. We followed your suggestions with some modification
and it helps.
We can set repositories based on HW class. And we should be able to manage
version of package by adding package pin entry in /etc/apt/preferences/CLASS
when needed
Here what we did.
1) We used individual repository for every Hardware CLASS in configuration.
2) The string "fcopy /etc/apt/sources.list" was placed in updatebase hook.
(not in instsoft hook because updatebase task updates the list of available
packages. That's probably why it didn't work before).
3) LAN initialization has been made in debconf hook to retrieve Debian
repositories by network
Best Regards,
Alexey.
2009/9/3 Michael Goetze <mgoetze at mgoetze.net>
> Hi Alex,
>
> Can someone suggest a way to install different versions of the same
>> package for different HW platforms?
>> Our thoughts were the following.
>> 1) Using instsoft hook, which is run before packages installation process
>> starts, to add HW specific repository for the platform handled.
>> apt-get update is run after adding a HW repository to sources.list. We
>> tried this but didn't succeed.
>>
>
> Write an instsoft hook which just does
>
> fcopy /etc/apt/sources.list /etc/apt/preferences
>
> Then you can put all the configuration for your Hardware CLASS in
> files/etc/apt/{sources.list,preferences}/CLASS.
>
> Regards,
> Michael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20090904/7ba860c2/attachment.htm
More information about the linux-fai
mailing list