[pve-devel] [PATCH container v4] Fix pct skiplock
Dietmar Maurer
dietmar at proxmox.com
Wed Mar 14 13:37:28 CET 2018
> diff --git a/src/lxc-pve-prestart-hook b/src/lxc-pve-prestart-hook
> index fd29423..79297da 100755
> --- a/src/lxc-pve-prestart-hook
> +++ b/src/lxc-pve-prestart-hook
> @@ -57,13 +57,16 @@ __PACKAGE__->register_method ({
> return undef if $param->{name} !~ m/^\d+$/;
>
> my $vmid = $param->{name};
> + my $skiplock_flag_fn = "/run/lxc/skiplock-$vmid";
> + my $skiplock = 1 if -e $skiplock_flag_fn;
> + unlink $skiplock_flag_fn if -e $skiplock_flag_fn;
Why not:
> + unlink $skiplock_flag_fn if $skiplock;
More information about the pve-devel
mailing list