sources.list per host

Michael Tautschnig tautschn at model.in.tum.de
Wed Jun 21 12:09:49 CEST 2006


> Hi,
> 
> I there a way to have a sources.list during the installation (and when 
> the system is installed) for some specific hosts.
> 
> E.g. we have rolled our own multipath packages and I don't want to 
> include that repository on each machine.
> 
> I could use a script that appends that repository and then do an update; 
> and install using that repository.
> 
> But then I can't use the package_config/CLASS for adding software.
> 
> An ideal way would be to be to say if class X is defined use 
> sources.list.X instead of sources.list.
>

Would it suffice if you fcopy'd sources.list at the right time? We're doing that
to some extend, using the hook updatebase.DEFAULT:

#!/bin/bash
if ! echo $classes | grep -q FAICD ; then
  fcopy -Bi /etc/apt/sources.list
fi

fcopy -Bi /etc/kernel-img.conf
fcopy -Bi /etc/apt/preferences

HTH,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20060621/75593836/attachment.bin 


More information about the linux-fai mailing list