[Lxc-users] lxc-destroy fs
Papp Tamas
tompos at martos.bme.hu
Thu Mar 7 20:54:44 UTC 2013
On 03/07/2013 09:43 PM, zoolook wrote:
>
> On Thu, Mar 7, 2013 at 5:21 PM, Papp Tamas <tompos at 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
More information about the lxc-users
mailing list