FAI-cd isn't "stable"-aware?
risc at volumehost.com
risc at volumehost.com
Tue Jun 7 18:20:55 CEST 2005
On Tue, Jun 07, 2005 at 04:46:56PM +0200, Thomas Wuppermann wrote:
> Hi,
>
> in the script fai-cd "testing" is set as the only distribution in the cd's sources.list (not "sarge") so since yesterday the cd -Installation fails :-(
>
> Just set "stable" instead in the script and everything runs fine ;-)
> (Don't know why fai-mirror creates his mirror-structure with "stable" and not with "sarge" as directory-name)
>
> Greetings
>
> Thomas W.
>
Hi Thomas,
i've found it useful to edit the sources.list file on the cd myself, so i threw together this little patch to fai-cd:
--- ../../fai-2.8.3/scripts/fai-cd 2005-04-20 08:41:41.000000000 -0500
+++ fai-cd 2005-05-31 13:00:10.000000000 -0500
@@ -208,12 +208,20 @@
# this will be the sources.list for the CD
tmp1=$(mktemp)
- cat > $tmp1 <<EOF
+# steal the file output from /etc/fai/sources.list.cd if it exists
+ if [ -e /etc/fai/sources.list.cd ]
+ then
+ cat /etc/fai/sources.list.cd > $tmp1
+ else
+ {
+ cat > $tmp1 <<EOF
# mirror location for fai CD, file generated by fai-cd
-
+
deb file:/media/mirror testing main contrib non-free
deb file:/fai/files packages/
EOF
+ }
+ fi
mount --bind $tmp1 $NFSROOT/etc/apt/sources.list
customize_nfsroot
echo "Writing FAI CD-ROM image to $isoname. This may need some time."
it steals /etc/fai/sources.list.cd, instead of using a built in one. i prefer it.
(if you're wondering, i'm fai-mirror'ing from a debian mirror that only has main)
Hope this helps, prefer if it makes it upstream,
Julia Longtin <risc at volumehost.com>
> ____________________________________________________________
>
> Hamburger Berater Team GmbH Telefon: 040/369779-0
> Stadthausbrücke 3 (Fleethof) Telefax: 040/369779-99
> 20355 Hamburg eMail : tw at hbt.de
> ____________________________________________________________
>
> Internet:
> http://www.hbt.de
> http://www.geofoxde
> http://www.geonetwatch.de
> ____________________________________________________________
>
> ISO9001: DQS-Zertifikat-Nr. 5206-02
> Alle Attachments geprüft mit Norton AntiVirus 7.6
> ____________________________________________________________
>
>
More information about the linux-fai
mailing list