> 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

Attachment: signature.asc
Description: Digital signature

Reply via email to