]> git.proxmox.com Git - pve-container.git/commitdiff
alloc_disk: adapt error for content-type
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Jun 2021 08:49:59 +0000 (10:49 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Jun 2021 08:51:24 +0000 (10:51 +0200)
as containers may be supported by the underlying storage tech, but
just not configured at the moment.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC.pm

index b2c4d7a33ee2780f8686ed77704972bf4cc39915..0a8a532593eac70227169c8ae40611df47bfbe4f 100644 (file)
@@ -1907,7 +1907,7 @@ sub alloc_disk {
            $volid = PVE::Storage::vdisk_alloc($storecfg, $storage, $vmid, 'raw', undef, $size_kb);
            $do_format = 1;
        } else {
-           die "storage '$storage' does not support containers\n";
+           die "content type 'rootdir' is not available or configured on storage '$storage'\n";
        }
        format_disk($storecfg, $volid, $rootuid, $rootgid) if $do_format;
     };