2010/1/22 Daniel Hokka Zakrisson <dan...@hozac.com>:
> Γιώργος Φαμέλης wrote:
>> Package: util-vserver
>> Version: 0.30.216-pre2864-1
>> Severity: normal
>> Tags: patch
>>
>> --- Please enter the report below this line. ---
>> In file vserver-build.debootstrap the global variable workdir is used
>> only when debootstrap is not installed.
>> When debootstrap is installed $workdir remains emty and the statement
>>   $_RM -fr "$workdir"
>> fails, resulting in
>>   base.setSuccess
>> to report failure.
>
> No, rm -f will never report failure for non-existant operands. This is

Yes, I know, and that was a weird thing.

> even in POSIX. What specific problem are you seeing that lead you to
> conclude this?

Aftrer running the command:
# newvserver --hostname vsrv1 \
--domain local --ip 192.168.1.32/24 --interface eth1 \
--dist sid --mirror http://ftp.us.debian.org/debian/

I got:
...
update-rc.d: using dependency based boot sequencing
/bin/rm: invalid argument: «»
newvserver: error: vserver-build failure. Cannot continue.

After some debuging
...
update-rc.d: using dependency based boot sequencing
++ /bin/rm -fr ''
/bin/rm: invalid argument: «»
+ base.__cleanup
+ test -z ''
+ test -z ''
+ rm -rf /etc/vservers/.defaults/vdirbase/vsrv1 /etc/vservers/vsrv1
newvserver: error: vserver-build failure. Cannot continue.

Then, I changed the line of vserver-build.debootstrap
$_RM -fr "$workdir"
to
$_RM -fr "$workdir" || :

and it worked.
...
update-rc.d: using dependency based boot sequencing
++ /bin/rm -fr ''
/bin/rm: invalid argument: «»
++ :
++ base.setSuccess
++ __BASE_SUCCESS=1
+ base.__cleanup
+ test -z 1
+ return 0

--
George Famelis



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to