]> git.proxmox.com Git - pve-container.git/commitdiff
create_disk: correctly pass nomp parameter to print_ct_mountpoint
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 5 Sep 2015 09:20:33 +0000 (11:20 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 5 Sep 2015 09:20:33 +0000 (11:20 +0200)
src/PVE/LXC.pm

index a29216c3e7dfd423f9e420f0b005f9b56acfacf4..53392a1438dbad9d13b1286b6aefcbcefe40fdf0 100644 (file)
@@ -2202,7 +2202,8 @@ sub create_disks {
                    die "unable to create containers on storage type '$scfg->{type}'\n";
                }
                push @$vollist, $volid;
-               $conf->{$ms} = print_ct_mountpoint({volume => $volid, size => $size, mp => $mp });
+                my $new_mountpoint = { volume => $volid, size => $size, mp => $mp };
+               $conf->{$ms} = print_ct_mountpoint($new_mountpoint, $ms eq 'rootfs');
            } else {
                # use specified/existing volid
            }