From f82922be2125c6fe4871a9fda0fb3a2920d4344a Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Thu, 2 Jun 2011 19:59:33 +0200 Subject: Fixing rsync issue and numberic id's (otherwise rsync maps by names which causes problems if the ids are different for server and slx clients) --- src/boot-env/OpenSLX/BootEnvironment/Base.pm | 4 ++-- src/boot-env/OpenSLX/MakeInitRamFS/Engine/Preboot.pm | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/boot-env') diff --git a/src/boot-env/OpenSLX/BootEnvironment/Base.pm b/src/boot-env/OpenSLX/BootEnvironment/Base.pm index aa4cbe5b..3ad7c602 100644 --- a/src/boot-env/OpenSLX/BootEnvironment/Base.pm +++ b/src/boot-env/OpenSLX/BootEnvironment/Base.pm @@ -1,4 +1,4 @@ -# Copyright (c) 2008 - OpenSLX GmbH +# Copyright (c) 2008..2011 - OpenSLX GmbH # # This program is free software distributed under the GPL version 2. # See http://openslx.org/COPYING @@ -57,7 +57,7 @@ sub finalize my $rsyncDeleteClause = $delete ? '--delete' : ''; my $rsyncCmd - = "rsync -a $rsyncDeleteClause --delay-updates $self->{'target-path'}/ $self->{'original-path'}/"; + = "rsync -a $rsyncDeleteClause --numeric-ids --delay-updates $self->{'target-path'}/ $self->{'original-path'}/"; slxsystem($rsyncCmd) == 0 or die _tr( "unable to rsync files from '%s' to '%s'! (%s)", diff --git a/src/boot-env/OpenSLX/MakeInitRamFS/Engine/Preboot.pm b/src/boot-env/OpenSLX/MakeInitRamFS/Engine/Preboot.pm index 1a68bfd0..319ff65e 100644 --- a/src/boot-env/OpenSLX/MakeInitRamFS/Engine/Preboot.pm +++ b/src/boot-env/OpenSLX/MakeInitRamFS/Engine/Preboot.pm @@ -1,4 +1,4 @@ -# Copyright (c) 2006-2008 - OpenSLX GmbH +# Copyright (c) 2006..2011 - OpenSLX GmbH # # This program is free software distributed under the GPL version 2. # See http://openslx.org/COPYING @@ -123,7 +123,7 @@ sub _copyRootfs my $exclOpts = join ' ', map { "--exclude $_" } @excludes; - $self->addCMD("rsync $exclOpts -rlpt $rootfs/ $self->{'build-path'}"); + $self->addCMD("rsync $exclOpts -rlpt --numeric-ids $rootfs/ $self->{'build-path'}"); return 1; } @@ -135,7 +135,7 @@ sub _copyPrebootSpecificFiles # write secondary rootfs-layer (including init) on top of base layer my $prebootRootfs = "$openslxConfig{'base-path'}/share/boot-env/preboot/rootfs"; - $self->addCMD("rsync -rlpt $prebootRootfs/ $self->{'build-path'}"); + $self->addCMD("rsync -rlpt --numeric-ids $prebootRootfs/ $self->{'build-path'}"); return 1; } -- cgit v1.2.3-55-g7522