FAI with sarge
Dieter Faulbaum
faulbaum at mail.bessy.de
Tue Oct 7 16:04:40 CEST 2003
Hello list-members,
I try to use FAI with the sarge distribution (because woody is so old;-).
But it failed, because the mkdebmirror script exits with this error:
# /usr/share/doc/fai/examples/utils/mkdebmirror
------------------ create mirror for debian ------------------
Use of uninitialized value in split at /usr/bin/debmirror line 802.
Archive-Update-in-Progress-fai failed
project/trace/fai failed
Failed to download files (2 errors)!
receiving file list ... link_stat /dists/sarge/main/disks-i386 : No such file or directory
done
client: nothing to do: perhaps you need to specify some filenames or the --recursive option?
rsync error: some files could not be transferred (code 23) at main.c(636)
To use it for sarge, I change the script in this way (is there
something wrong or missed I something or what is the problem, that I
can't make a mirror of sarge):
/usr/share/doc/fai/examples/utils/mkdebmirror:
#! /bin/sh
# $Id: mkdebmirror,v 1.18 2003/01/21 15:56:27 lange Exp $
# Thomas Lange, lange at informatik.uni-koeln.de, (c) 2001-2003
# create partitial debian mirror using debmirror new in unstable/sarge
# needs debmirror 20020427-1 or newer
# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
rsync_disks() {
# get the boot disks
rsync --delete -av $rsynchost::debian/dists/$1/main/disks-$arch $destdir/debian/dists/$1/main/
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
update_from() {
# update local mirror from host $1
host=$1
allopt="$debug --passive --getcontents --nosource --arch=$arch --ignore=disks-$arch/"
#defopt="$allopt --host=$host --dist=$dist,$dist-proposed-updates"
defopt="$allopt --host=$host --dist=$dist"
echo "------------------ create mirror for debian ------------------"
debmirror $destdir/debian $defopt
# echo "------------------ create mirror for debian-non-US ------------------"
# debmirror $destdir/debian-non-US $defopt -r /debian-non-US -s non-US/main,non-US/contrib,non-US/non-free
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# main program
arch=i386
#dist=woody
dist=sarge
debug="$@"
destdir=/files/scratch/debmirror
# first sync to a mirror near to you
#update_from ftp.uni-koeln.de
# since this mirror is not always up to date, sync now to an official mirror
#update_from ftp.de.debian.org
#update_from ftp2.de.debian.org
update_from ftp.debian.org
# even one should not mirror the security site, but I will do it.
# there is no (Debian-)security for sarge (yet), so I commented it out
#echo "------------------ create mirror for debian-security ------------------"
#debmirror $destdir/debian-security $allopt --host=security.debian.org -r debian-security -d $dist/updates
rsynchost=ftp2.de.debian.org
rsync_disks $dist
I hope anyone can help me.
--
\____ __
Dieter Faulbaum o/ \
<\__,\
"\, \
Berliner Elektronenspeicherring-Gesellschaft
für Synchrotronstrahlung mbH (BESSY) phone +49 30 6392-4652
Albert-Einstein-Str. 15 Geb. 14.51 fax +49 30 6392-2939
D 12489 Berlin/Adlershof email faulbaum at mail.bessy.de
More information about the linux-fai
mailing list