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

Alexandre DERUMIER aderumier at odiso.com
Mon Aug 17 10:37:48 CEST 2015


>>Not sure if we should mix that into the LXSetup code. Maybe it is better to use
>>the lxc.hook.pre-mount hook? (see man lxc.container.conf)

AFAIK, the rootfs is not yet mounted in pre-mount hook.
So I can't mount other mountpoints.

mknod should work to expose block device.


What I'm not sure, it's about lxc.mount.entry , I never be able to use them with block devices.
Maybe because I use mknod in mount hook instead pre-mount ?


I'll do test with 

pre-mount : mknod...
and lxc.mount.entry

too see if it's help.




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

Not sure if we should mix that into the LXSetup code. Maybe it is better 
to use 
the lxc.hook.pre-mount hook? (see man lxc.container.conf) 



More information about the pve-devel mailing list