[pve-devel] [PATCH qemu-server 1/1] commit_cloudinit_disk : add -n option to qemu-img dd

Alexandre Derumier aderumier at odiso.com
Wed Mar 21 12:19:17 CET 2018


---
 PVE/QemuServer/Cloudinit.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer/Cloudinit.pm b/PVE/QemuServer/Cloudinit.pm
index 9a809c5..d536a0f 100644
--- a/PVE/QemuServer/Cloudinit.pm
+++ b/PVE/QemuServer/Cloudinit.pm
@@ -36,7 +36,7 @@ sub commit_cloudinit_disk {
 
     eval {
 	run_command([['genisoimage', '-R', '-V', $label, $path],
-		     ['qemu-img', 'dd', '-f', 'raw', '-O', $format,
+		     ['qemu-img', 'dd', '-n', '-f', 'raw', '-O', $format,
 		      'isize=0', "osize=$size", "of=$iso_path"]]);
     };
     my $err = $@;
-- 
2.11.0




More information about the pve-devel mailing list