On 03/07/2013 09:43 PM, zoolook wrote:
>
> On Thu, Mar 7, 2013 at 5:21 PM, Papp Tamas <tom...@martos.bme.hu> wrote:
>>>>            else
>>>>                # In case rootfs is not under $lxc_path/$lxc_name, remove it
>>>>                rm -rf --one-file-system --preserve-root $rootdev
>>
>> But it's removed here.
>
> ....
>
>> Do I miss something?
>
> If you don't want it to remove $rootdev, why are you doing rm -rf $rootdev?
>
> I think you miss one "if" there. Something like:
>
> if [ "$rootfs" == "$lxc_path/$lxc_name/rootfs" ]:
>    rm -rf .....
> fi

Me?

It was not me, who wrote this script:)

tamas


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to