sources.list per host

glaweh at physik.fu-berlin.de glaweh at physik.fu-berlin.de
Wed Jun 21 12:18:07 CEST 2006


On Wed, Jun 21, 2006 at 11:53:51AM +0200, Rudy Gevaert wrote:
> 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.
> 
> Is there already away (or work arround) to achieve this?

use fcopy in a hook replacing the prepareapt task; I am using the following
file as $FAI/hooks/prepareapt.DEFAULT:
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
#!/bin/bash
# $Id: prepareapt.DEFAULT,v 1.1 2005/05/03 14:16:51 glaweh Exp $
# 
# HG: use fcopy for apt preparation
fcopy -i etc/{hosts,hostname,resolv.conf}
fcopy -ri etc/apt
fcopy -ri etc/dpkg
skiptask prepareapt
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

then you have to put your class-dependent sources.lists into
$FAI/files/etc/apt/sources.list/$CLASSNAME

(and if you want to use my hook verbatim, also the remaining files I fcopy
there).

-- 
c u
henning
-------------- 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/8cc608e6/attachment.bin 


More information about the linux-fai mailing list