[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-fai
Subject:    Re: How to dynamically add a repository in FAI?
From:       Alex Ingle <ingle.as () gmail ! com>
Date:       2009-09-04 13:08:05
Message-ID: 716295d60909040608p5eebcf63ve540be47134df8da () mail ! gmail ! com
[Download RAW message or body]

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@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
>

[Attachment #3 (text/html)]

Hello Michael,<br>Thank you for your help. We followed your suggestions with some \
modification and it helps.<br>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<br> Here what we did.<br>1) We used individual \
repository for every Hardware CLASS in configuration.<br>2) The string &quot;fcopy \
/etc/apt/sources.list&quot; was placed in updatebase hook. (not in instsoft hook \
because updatebase task updates the list of available packages. That&#39;s probably \
why it didn&#39;t work before).<br>3) LAN initialization has been made in debconf \
hook to retrieve Debian repositories by network<br><br>Best \
Regards,<br>Alexey.<br><br><br><div class="gmail_quote"> 2009/9/3 Michael Goetze \
<span dir="ltr">&lt;<a \
href="mailto:mgoetze@mgoetze.net">mgoetze@mgoetze.net</a>&gt;</span><br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> Hi Alex,<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Can someone suggest a way to install \
different versions of the same package for different HW platforms?<br> Our thoughts \
were the following.<br> 1) Using instsoft hook, which is run before packages \
installation process starts, to add HW specific repository for the platform \
handled.<br> apt-get update is run after adding a HW repository to sources.list. We \
tried this but didn&#39;t succeed.<br> </blockquote>
<br></div>
Write an instsoft hook which just does<br>
<br>
fcopy /etc/apt/sources.list /etc/apt/preferences<br>
<br>
Then you can put all the configuration for your Hardware CLASS in \
files/etc/apt/{sources.list,preferences}/CLASS.<br> <br>
Regards,<br><font color="#888888">
Michael<br>
</font></blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic