[pve-devel] [PATCH 9/9] mount hook : mount blockdevs

Alexandre DERUMIER aderumier at odiso.com
Mon Aug 17 13:50:04 CEST 2015


>>yes, I see that, could be used to mount an encryptet rootfs.
>>I'll do tests.

I have done a lot of tests, I'm unable to do it in pre-mount hook.

If I mount the root manually, I have error after when lxc try to mount rootfs.

and I need the root, to mount others mountpoints.

So, the mount hook seem to be the good place to do it.

If you don't have to do it in lxcsetup::base, I can manage mountpoints before, directly in the hook script for example.



----- Mail original -----
De: "aderumier" <aderumier at odiso.com>
À: "dietmar" <dietmar at proxmox.com>
Cc: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Lundi 17 Août 2015 10:58:29
Objet: Re: [pve-devel] [PATCH 9/9] mount hook : mount blockdevs

>>Maybe there is a way to avoid that. man lxc.container.conf mentions 
>>that it can be used for "for manipulation of the rootfs" 

yes, I see that, could be used to mount an encryptet rootfs. 

I'll do tests. 



----- Mail original ----- 
De: "dietmar" <dietmar at proxmox.com> 
À: "aderumier" <aderumier at odiso.com> 
Cc: "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Lundi 17 Août 2015 10:56:21 
Objet: Re: [pve-devel] [PATCH 9/9] mount hook : mount blockdevs 

> I can try, but I'm not sure if lxc will not thrown error after, as it'll try 
> to mount the rootfs again. 

Maybe there is a way to avoid that. man lxc.container.conf mentions 
that it can be used for "for manipulation of the rootfs" 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list