Re: [Replicator-users] Tests for repli-sync ?
Status: Beta
Brought to you by:
schaumat
|
From: Sebastien C. <Seb...@en...> - 2002-10-31 21:15:28
|
Hi,
about your patch
The "-text2" is superseeded by the future -t$fs :)
(I though I did commit this... maybe it still on my hd)
The point is that repli-update need cleaning. I want to use standard
argument parser (as in repli-miniroot).
The folowing maybe interresting :
split replicator.deb in 3 :
replicator-miniroot-server : only repli-miniroot=20
replicator-model-server : only repli-bootdisk and something to get info
about the model (I guess maximum info about the model should be gathered
at replication time only via rsync)
replicator-target-syncer : repli-sync
I'm busy for the next 2 days (conferences :)
Le jeu 31/10/2002 =E0 15:07, Bernd Harmsen a =E9crit :
>=20
> Hello all,
>=20
> On Wed, Oct 30, 2002 at 07:45:34PM +0100, Sebastien Chaumat wrote:
> It's nice to read from you. Hope that you had a good holiday.
>=20
>=20
> > > > >------------------------------------------------------------------=
--
> > > > >3) Take a deeper look in the code of "repli-update" and understand
> > > > >what is doing what.
> > > > >------------------------------------------------------------------=
--
> > >=20
> > > > >$excludefile =3D "/tmp/excl.rsync.$$";
> > > > >$fh =3D new FileHandle $excludefile,"w" or die "opening exclude fi=
le:$!\n";;
> > > > >foreach (@slash_exclude) { print $fh "- $_\n"; }
> > > > >$fh->close; =20
> > > > >dosystem("rsync $rsyncopt --one-file-system --exclude-from=3D$excl=
udefile=20
> > > > >${model}::replicator/ $destdir 2>&1");
> > > > >
> > > > >The content of the list @slash_exclude is written to a file, line =
by
> > > > >line. But for what is the "-" in { print $fh "- $_\n"; } ?
> > sure: the "-" tell rsync to force exclusion of the file even if there i=
s
> > a wildcard to include it.
>=20
> From the manpage of rsync (I have thought the - is perl syntax, before):
>=20
> o if the pattern starts with "+ " (a plus followed by a space) =
then it is
> always considered an include pattern, even if specified as pa=
rt of an
> exclude option. The "+ " part is discarded before matching.
>=20
> o if the pattern starts with "- " (a minus followed by a space) =
then it is
> always considered an exclude pattern, even if specified as pa=
rt of an
> include option. The "- " part is discarded before matching.
>=20
> As I understand in an exclude-option you never need a "-" and in an
> include-option you never need a "+". (But is does no harm) The exclude
> and include options are parsed from the first to the last param and in
> the e/i-lists from the first line to the last. The first patern match
> is valid, no matter if there is a "+" or "-" sign.
>=20
>=20
>=20
> > > > >------------------------------------------------------------------=
--
> > > > >4) Correct "repli-update" and/or call it with other params
> > > > >------------------------------------------------------------------=
--
> > I will correct repli-update : this is my first taskj after fixing the
> > woody package.
>=20
> Because Jerome already fixed the woody package, I feel it is good to
> wait for his patch and concentrate on repli-update in the meantime.
>=20
> I will run some deeper tests this afternoon, to find out what files are
> exclude during repli-sync and what files not. Do you think it is good
> to do a new repli-install before or is it sufficient only to install
> the new debian package (CVS from 30.10.2002) on model and target.
>=20
> I you like that I run a spezial test, watch a spezial behavior or
> include a spezial patch before, just write me.
>=20
Can you check, in documentations, if "mkfs -t fs" works whatever fs is?
I mean is there any filesysteme that do not follow the "mkfs -t"
convention.=20
Thanks for you interrest in this project
SEb
> After repli-update is working I think it is good to:
> a) write some documentation (e.g. manpages, more clean installation
> instructions)=20
> b) implement some nice new features (e.g. the @change_hostname list).
>=20
> Attached you find my "cvs diff" from today.
>=20
>=20
> Regards,
> Bernd
> ----
>=20
> ? Replicator-UserGuide.ps
> ? build-stamp
> ? debian/tmp
> Index: Makefile
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> RCS file: /cvsroot/replicator/replicator/Makefile,v
> retrieving revision 1.35
> diff -u -r1.35 Makefile
> --- Makefile 7 Aug 2002 10:37:56 -0000 1.35
> +++ Makefile 31 Oct 2002 13:09:30 -0000
> @@ -1,4 +1,4 @@
> -DESTDIR=3D
> +DESTDIR=3D./debian/tmp/
> VERSION=3D2.1.0
> CFLAGS=3D-O
> INSTALL=3Dinstall -o root -g root
> @@ -15,7 +15,7 @@
> #pci.lst
> MINIROOT-FILES-DEST=3D$(DESTDIR)/usr/share/replicator
> =20
> -DOC=3Dreplicator.conf.example repli-postinst.example\
> +DOC=3Dreplicator.conf.example examples/repli-postinst.example\
> Replicator-UserGuide.ps\
> Replicator-UserGuide.tex copyright TODO=20
> #repli-postinst.diskless.example=20
> Index: repli-install
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> RCS file: /cvsroot/replicator/replicator/repli-install,v
> retrieving revision 1.81
> diff -u -r1.81 repli-install
> --- repli-install 1 Oct 2002 06:18:47 -0000 1.81
> +++ repli-install 31 Oct 2002 13:09:31 -0000
> @@ -402,7 +402,7 @@
> if (!$firstpart or $firstpart ne $p) {
> print STDERR "mkpath:/target\n";
> $dryrun or mkpath(["/target"],1,0755);
> - dodryrun('mount',$p->[$PDEVICE],"/target");
> + dodryrun("mount -text2 $p->[$PDEVICE] /target");
> }
> }
> }
> @@ -413,7 +413,7 @@
> print STDERR "mkpath:$dir\n";
> $dryrun or mkpath([$dir],1,0755);
> if (!$firstpart or $firstpart ne $p) {
> - dodryrun('mount',$p->[$PDEVICE],$dir);
> + dodryrun("mount -text2 $p->[$PDEVICE] $dir");
> }
> }
> }
> Index: update_rules.default
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> RCS file: /cvsroot/replicator/replicator/update_rules.default,v
> retrieving revision 1.17
> diff -u -r1.17 update_rules.default
> --- update_rules.default 14 Jun 2002 16:14:12 -0000 1.17
> +++ update_rules.default 31 Oct 2002 13:09:31 -0000
> @@ -19,7 +19,6 @@
> /etc/isapnp.conf
> /etc/minirc*
> /etc/gpm.conf
> -/etc/replicator*
> /etc/fstab
> /etc/lilo.conf
> /etc/hostname
> Index: debian/changelog
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> RCS file: /cvsroot/replicator/replicator/debian/changelog,v
> retrieving revision 1.9
> diff -u -r1.9 changelog
> --- debian/changelog 14 Jun 2002 16:14:12 -0000 1.9
> +++ debian/changelog 31 Oct 2002 13:09:31 -0000
> @@ -1,3 +1,16 @@
> +replicator (3.0-cvs20021030) unstable; urgency=3Dlow
> +
> + * Add updates from CVS
> +
> + -- Bernd Harmsen <bj...@da...> Wed, 30 Oct 2002 18:12:43 +0100
> +
> +replicator (3.0-cvs20020820) unstable; urgency=3Dlow
> +
> + * Compiled from CVS.
> + * Add -text2 to mount options in repli-install
> +
> + -- Bernd Harmsen <bj...@da...> Wed, 30 Oct 2002 18:11:52 +0100
> +
> replicator (3.0) unstable; urgency=3Dlow
> =20
> * woody compliance improved
> Index: debian/control
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> RCS file: /cvsroot/replicator/replicator/debian/control,v
> retrieving revision 1.11
> diff -u -r1.11 control
> --- debian/control 14 Jun 2002 16:14:12 -0000 1.11
> +++ debian/control 31 Oct 2002 13:09:31 -0000
> @@ -7,7 +7,7 @@
> =20
> Package: replicator
> Architecture: i386
> -Depends: rsync (>=3D 2.3.2), ${perl:Depends}, wget, dialog, nfs-server, =
grub, debootstrap (>=3D 0.1.16.3)
> +Depends: rsync (>=3D 2.3.2), ${perl:Depends}, wget, dialog, nfs-server, =
grub, debootstrap (>=3D 0.1.16.3), binutils
> Description: automate new computer installations in a networked site.
> Using a nfs-root filesystem and rsync, replicator allow=20
> you to non-interactively install a target computer=20
> Index: debian/files
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> RCS file: /cvsroot/replicator/replicator/debian/files,v
> retrieving revision 1.1
> diff -u -r1.1 files
> --- debian/files 20 Feb 2001 20:25:28 -0000 1.1
> +++ debian/files 31 Oct 2002 13:09:31 -0000
> @@ -1 +1 @@
> -replicator_2.0.1_i386.deb admin optional
> +replicator_3.0-cvs20021030_i386.deb admin optional
> Index: debian/postinst.debhelper
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> RCS file: /cvsroot/replicator/replicator/debian/postinst.debhelper,v
> retrieving revision 1.2
> diff -u -r1.2 postinst.debhelper
> --- debian/postinst.debhelper 17 May 2001 13:45:18 -0000 1.2
> +++ debian/postinst.debhelper 31 Oct 2002 13:09:31 -0000
> @@ -6,7 +6,7 @@
> fi
> # End automatically added section
> # Automatically added by dh_installdocs
> -if command -v install-docs >/dev/null 2>&1; then
> +if [ "$1" =3D configure ] && command -v install-docs >/dev/null 2>&1; th=
en
> install-docs -i /usr/share/doc-base/replicator
> fi
> # End automatically added section
> Index: debian/prerm.debhelper
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> RCS file: /cvsroot/replicator/replicator/debian/prerm.debhelper,v
> retrieving revision 1.2
> diff -u -r1.2 prerm.debhelper
> --- debian/prerm.debhelper 17 May 2001 13:45:18 -0000 1.2
> +++ debian/prerm.debhelper 31 Oct 2002 13:09:31 -0000
> @@ -4,7 +4,8 @@
> fi
> # End automatically added section
> # Automatically added by dh_installdocs
> -if command -v install-docs >/dev/null 2>&1; then
> +if [ "$1" =3D remove -o "$1" =3D upgrade ] && \
> + command -v install-docs >/dev/null 2>&1; then
> install-docs -r replicator
> fi
> # End automatically added section
> Index: debian/substvars
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> RCS file: /cvsroot/replicator/replicator/debian/substvars,v
> retrieving revision 1.2
> diff -u -r1.2 substvars
> --- debian/substvars 17 May 2001 13:45:18 -0000 1.2
> +++ debian/substvars 31 Oct 2002 13:09:31 -0000
> @@ -1 +1 @@
> -perl:Depends=3Dperl5
> +perl:Depends=3Dperl
--=20
Sebastien CHAUMAT =20
Ecole Normale Superieure Laboratoire de Physique / PR@TIC
46, All=E9e d'Italie +33 4 72 72 84 66 fax: +33 4 72 72 81 81
69364 LYON CEDEX 07 FRANCE E-mail : Seb...@en...
|