lvm plugin: use relative path for qcow2 rebase command
otherwise the resulting qcow2 file will contain an absolute path, which makes renaming the backing VG of the storage impossible. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> Reviewed-by: Fiona Ebner <f.ebner@proxmox.com> Link: https://lore.proxmox.com/20250729115320.579286-5-f.gruenbichler@proxmox.com
This commit is contained in:
committed by
Fiona Ebner
parent
7da44f56e4
commit
d0239ba9c0
@ -1117,14 +1117,14 @@ sub volume_snapshot_delete {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
#we rebase the child image on the parent as new backing image
|
#we rebase the child image on the parent as new backing image
|
||||||
my $parentpath = $snapshots->{$parentsnap}->{file};
|
|
||||||
print
|
print
|
||||||
"$volname: deleting snapshot '$snap' by rebasing '$childsnap' on top of '$parentsnap'\n";
|
"$volname: deleting snapshot '$snap' by rebasing '$childsnap' on top of '$parentsnap'\n";
|
||||||
|
my $rel_parent_path = get_snap_name($class, $volname, $parentsnap);
|
||||||
$cmd = [
|
$cmd = [
|
||||||
'/usr/bin/qemu-img',
|
'/usr/bin/qemu-img',
|
||||||
'rebase',
|
'rebase',
|
||||||
'-b',
|
'-b',
|
||||||
$parentpath,
|
$rel_parent_path,
|
||||||
'-F',
|
'-F',
|
||||||
'qcow2',
|
'qcow2',
|
||||||
'-f',
|
'-f',
|
||||||
|
|||||||
Reference in New Issue
Block a user