<div>Hi Frederik,</div>
<div> </div>
<div>In the FAI guide, it is said to adjust the sources.list file after placing the base.tgz in the basefiles/ directory.</div>
<div>There are two sources.list files : one in the /etc/fai/apt and another in the base.tgz. Which one of them needs</div>
<div>to be adjusted.<br><br></div>
<div class="gmail_quote">2010/11/23 Fredrik Eriksson <span dir="ltr"><<a href="mailto:fredrik.eriksson@axis.com">fredrik.eriksson@axis.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">mamadou diop wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Because of the sources.list file which only points to a Debian release at a given time, it seems to me<br>
that it is impossible to install simultaneously Debian clients with differents releases. Is my opinion true?<br></blockquote></div>We actually have this in our current testing environment.<br>What you typically want is to have two files in your fai/config/ tree, a sources.list file and a hook script (at least this is how we solve it). The sources.list file should be named after a class, where you for example define what distribution to run, and be put in fai/config/files/etc/apt/sources.list/, i.e fai/config/files/etc/apt/sources.list/LENNY_AMD64.<br>
As for the hook script ours is called fai/config/hooks/updatebase.DEFAULT and is a small shell script to say the least:<br><br>#! /bin/bash<br><br>fcopy -Bi /etc/apt/sources.list<br><br>What it does is that it takes the file based on your defined class, for example fai/config/files/etc/apt/sources.list/SQUEEZE_X86, and copy it to /etc/apt/sources.list on your target system. Thus you can have multiple sources.list files aimed at different releases (and distributions or architectures if needed).<br>
<br>I hope this answers your question.<br><br><br>Regards<br>--<br><font color="#888888">Fredrik<br></font></blockquote></div><br>