Subject: Re: [vserver] readonly root not working (mkdir(): read-only filesystem on vcontext command)
From: Benjamin Sonntag <benjamin@octopuce.fr>
Date: Mon, 21 Mar 2011 11:47:48 +0100
Mon, 21 Mar 2011 11:47:48 +0100
Hi,

Le 21/03/2011 09:28, Daniel Hokka Zakrisson a écrit :
> Benjamin Sonntag wrote:
>> Hi,
>>
>>
>>> Is there a reason you don't just mkdir .oldroot in your base filesystem?
>>>
>> yes : in the vcontext.c code, there is :
>>
>> - mkdir (and if it fail, exit)
> Unless it already existed.
You are so right!

I changed it that way, mkdir .oldroot was indeed THE solution :-D

you may add it to any kind of FAQ  you have :

"I want to create a read-only vserver, is there something specific to do ?"

yes : create a folder named .oldroot at the root of your virtual server instance

Thanks a lot,

Regards,

Benjamin Sonntag




["application/pgp-signature" not shown]