Problems with nfs mounts.
Jan Jansen
maillist_jan at gmx.net
Thu Oct 6 13:30:45 CEST 2005
On Wednesday 05 October 2005 11:58, Kai-Felix Braun wrote:
> apt-get install rsync apache2
> fai-mirror -v /files/scratch/mirror
> ln -s /files/scratch/mirror /var/www/mirror
> Changed in /etc/fai/make-fai-nfsroot.conf:
> NFSROOT_ETC_HOSTS="192.168.42.250 atom00"
> then another fai-setup -v
Thus many official, but not debian maintained mirrors on the internet haven't
a 'debmirror(1)' compliant directory structure/Packages.gz locations, and
additionaly change them from time to time, the fai routines to make a local
mirror don't funct all the time. I had the same problem and made some
modifications to the 'mkdebmirror' script (non-US mirrors are errournous yet,
but debian/proposed-updates and debian-security are functional.
Its a thing that i don't understand too, that there are differences in details
of the directory structure on different servers with the same actuality and
that this changes dependend on how often the mirrors maintainer thinks that a
change is required. This was really killing my nerves as i made an
installation one day (all went fine), gone home, and the next day (no changes
were made) nothing, but really NOTHING worked again!
You could ship around this (never going to be solved ;( ) problem by using
rsync on the official debian maintained mirrors, but this is limited, no
architecture or section selecting is supported (so your mirror will be MUCH
larger because also sparc,ppc pkgs are downloaded, and this makes the mirror
process endless long), and after a period of hours you'ill be disconected if
not mirroring to create an official debian mirror...
Script below:
#! /bin/sh
# $Id: INSTALL_SERVER,v 1.2 2005/10/05 16:14:11 jan Exp $
# Thomas Lange, lange at informatik.uni-koeln.de, (c) 2001-2004
# create partitial debian mirror using command debmirror(1) and rsync
# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
rsync_disks() {
# get the boot disks
rsync --delete -av $2::debian/dists/$1/main/disks-$arch
$destdir/debian/dists/$1/main/
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
update_from() {
# update local mirror from a host
host=$1
allopt="$debug --passive --nosource --arch=$arch --ignore=disks-$arch/
--ignore-release-gpg --ignore-missing-release --progress --verbose
--postcleanup"
defopt="$allopt --host=$host --dist=$dist"
US_defopt="$allopt --host=$host --dist=$dist_US"
echo "------------------ create mirror for debian ------------------"
debmirror $destdir/debian $defopt
echo "------------------ create mirror for debian-non-US
------------------"
debmirror $destdir/debian-non-US $US_defopt -r /debian-non-US -s
non-US/main,non-US/contrib,non-US/non-free
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# main program
#
# here you have to adjust the hostnames of the mirror and the names of the
distributions
debug="$@"
arch=i386
dist=sarge,sarge-proposed-updates
dist_US=sarge
destdir=/var/install/linux
# first sync from a mirror near to you
update_from debian.tu-bs.de
# since this mirror is not always up to date, sync the rest from an official
mirror
update_from ftp.de.debian.org
# even one should not mirror the security site, but I will do it.
echo "------------------ create mirror for debian-security ------------------"
debmirror $destdir/debian-security $allopt --host=ftp2.de.debian.org
-root=debian-security -s "updates/main,updates/contrib,updates/non-free"
--dist=sarge
# get installation disk images via rsync
# no disks anymore (?), only CD/DVD with binary disk images on them
#rsync_disks sarge ftp.de.debian.org
--
-----------------------------------------------------------------
EKF Elektronik GmbH Industrial Computers & Information Technology
Jan Jansen mailto:jan at ekf.de http://www.ekf.de
Philipp Reis Str. 4 fax: +49 (0)2381-6890-90
D-59065 Hamm (Germany) phone: +49 (0)2381-6890-0
-----------------------------------------------------------------
More information about the linux-fai
mailing list