]> git.proxmox.com Git - pve-container.git/blobdiff - src/PVE/CLI/pct.pm
Use parse_volume instead of parse_ct-variants
[pve-container.git] / src / PVE / CLI / pct.pm
index 33f564fd0ffb71c1a77c81808eae235ac7d4c199..54bd7a7bc222be376ac47912034fa2fc45686ee2 100755 (executable)
@@ -233,8 +233,7 @@ __PACKAGE__->register_method ({
 
            defined($conf->{$device}) || die "cannot run command on non-existing mount point $device\n";
 
-           my $mount_point = $device eq 'rootfs' ? PVE::LXC::Config->parse_ct_rootfs($conf->{$device}) :
-               PVE::LXC::Config->parse_ct_mountpoint($conf->{$device});
+           my $mount_point = PVE::LXC::Config->parse_volume($device, $conf->{$device});
 
            die "cannot run fsck when container is running\n"
                if PVE::LXC::check_running($vmid);