[pve-devel] [PATCH container 2/6] clear reboot request in vm_start
Oguz Bektas
o.bektas at proxmox.com
Tue Nov 12 17:26:58 CET 2019
Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
src/PVE/LXC.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index c77ee01..091d34a 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -1932,6 +1932,9 @@ sub userns_command {
sub vm_start {
my ($vmid, $conf, $skiplock) = @_;
+ eval { clear_reboot_request($vmid) };
+ warn $@ if $@;
+
# apply pending changes while starting
if (scalar(keys %{$conf->{pending}})) {
my $storecfg = PVE::Storage::config();
--
2.20.1
More information about the pve-devel
mailing list