]> git.proxmox.com Git - pve-container.git/commitdiff
restore: fix simple with non-volume mps
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 20 Sep 2016 11:02:42 +0000 (13:02 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 20 Sep 2016 11:57:33 +0000 (13:57 +0200)
adding non-volume mps was supposed to be delayed in "simple"
(storage-only) restore mode

src/PVE/API2/LXC.pm

index 9b92c13491e5d34bbfaafa830ad2185904af2723..12aaffa83cd0d59a77bd90c4c7947cae077d7553 100644 (file)
@@ -360,6 +360,7 @@ __PACKAGE__->register_method({
                                    warn "mountpoint configuration will be restored after archive extraction!\n";
                                    warn "contained files will be restored to wrong directory!\n";
                                }
+                               delete $mp_param->{$ms}; # actually delay bind/dev mps
                                $delayed_mp_param->{$ms} = PVE::LXC::Config->print_ct_mountpoint($mountpoint, $ms eq 'rootfs');
                            }
                        });