Skip to content

Commit f859990

Browse files
committed
libvirt/rm: Do remove all storage too
Regression from previous commit; otherwise we leak disk images. Signed-off-by: Colin Walters <[email protected]>
1 parent c40c685 commit f859990

File tree

1 file changed

+2
-2
lines changed
  • crates/kit/src/libvirt

1 file changed

+2
-2
lines changed

crates/kit/src/libvirt/rm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ pub fn run(global_opts: &crate::libvirt::LibvirtOptions, opts: LibvirtRmOpts) ->
9797
}
9898
}
9999

100-
// Remove libvirt domain with nvram
100+
// Remove libvirt domain with nvram and storage
101101
println!(" Removing libvirt domain...");
102102
let output = global_opts
103103
.virsh_command()
104-
.args(&["undefine", &opts.name, "--nvram"])
104+
.args(&["undefine", &opts.name, "--nvram", "--remove-all-storage"])
105105
.output()
106106
.with_context(|| "Failed to undefine libvirt domain")?;
107107

0 commit comments

Comments
 (0)