[pve-devel] [PATCH 2/3] update_lxc_config : code_clenaup
Dietmar Maurer
dietmar at proxmox.com
Fri Aug 21 10:16:29 CEST 2015
On 08/21/2015 05:14 AM, Alexandre Derumier wrote:
> - use volid_path sub
> - we now manage only rootfs, subvol mount.entry will be manage in mount hook
>
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
> src/PVE/LXC.pm | 33 +++------------------------------
> 1 file changed, 3 insertions(+), 30 deletions(-)
>
> diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
> index fb54069..aaeee7f 100644
> --- a/src/PVE/LXC.pm
> +++ b/src/PVE/LXC.pm
> @@ -1002,39 +1002,12 @@ sub update_lxc_config {
> PVE::LXC::foreach_mountpoint($conf, sub {
> my ($ms, $mountpoint) = @_;
>
> + return if $ms ne 'rootfs';
> my $volid = $mountpoint->{volume};
> return if !$volid || $volid =~ m|^/dev/.+|;
>
you simply skip /dev/? I though we want to add a lxc.rootfs entry for them?
More information about the pve-devel
mailing list