Hi Stephen

Thanks for the report.

In this case the vserver-build should be called with --force, but I
think it only should be done if the vserver etc dir do not exist.
I personally thought that pkgcache was on by default, but obviously
I was wrong. :)

I'll correct that on next upload (likely), but a patch is welcome.

Regards,

// Ola

On Mon, Apr 30, 2007 at 02:16:51AM -0400, Stephen Gregory wrote:
> Package: vserver-debiantools
> Version: 0.3.4
> 
> The --pkgcache option (and PKGCACHE=1) cause newvserver to fail. As
> near as I can tell it is because the vserver directory is created and
> the cached debs are copied over before vserver-build is called. The
> tool vserver-build checks for the existance of the new vserver root
> and fails if the directory already exists.
> 
> 
> 
> # newvserver  --hostname foo --domain example.com --ip 10.1.2.3/24  \
>               --context 42 --vsroot /vserver/2/ --pkgcache
> s_context: 0
> Clean package cache.
> Reading package lists... Done
> Building dependency tree... Done
> find: warning: you have specified the -mindepth option after a
> non-option argument -name, but options are not positional (-mindepth
> affects tests specified before it as well as those specified after
> it).  Please specify options before other arguments.
> 
> find: warning: you have specified the -maxdepth option after a
> non-option argument -name, but options are not positional (-maxdepth
> affects tests specified before it as well as those specified after
> it).  Please specify options before other arguments.
> 
> /vserver/2/foo/var
> vserver-topdirectory '/vserver/2/foo/etc' and/or configuration at 
> '/etc/vservers/foo'
> exist already; please try to use '--force', or remove them manually.
> newvserver: error: vserver-build failure. Cannot continue.
> 
> 
> $ ls /etc/vservers/foo
> ls: /etc/vservers/foo: No such file or directory
> 
> $ ls /vserver/2/foo
> var
> 
> 
> -- 
> sg
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                     654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://opalsys.net/                 UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to