@@ -538,8 +538,11 @@ def print_time(ellapsed_seconds):
538
538
539
539
def raw_to_qcow2 (prebuilt = False , reverse = False ):
540
540
if prebuilt :
541
+ disable_trace = []
541
542
qemu_img_executable = common .qemu_img_basename
542
543
else :
544
+ # Prevent qemu-img from generating trace files like QEMU. Disgusting.
545
+ disable_trace = ['-T' , 'pr_manager_run,file=/dev/null' , common .Newline ,]
543
546
qemu_img_executable = common .qemu_img_executable
544
547
infmt = 'raw'
545
548
outfmt = 'qcow2'
@@ -552,16 +555,19 @@ def raw_to_qcow2(prebuilt=False, reverse=False):
552
555
tmp = infile
553
556
infile = outfile
554
557
outfile = tmp
555
- common .run_cmd ([
556
- qemu_img_executable , common .Newline ,
557
- # Prevent qemu-img from generating trace files like QEMU. Disgusting.
558
- '-T' , 'pr_manager_run,file=/dev/null' , common .Newline ,
559
- 'convert' , common .Newline ,
560
- '-f' , infmt , common .Newline ,
561
- '-O' , outfmt , common .Newline ,
562
- infile , common .Newline ,
563
- outfile , common .Newline ,
564
- ])
558
+ common .run_cmd (
559
+ [
560
+ qemu_img_executable , common .Newline ,
561
+ 'convert' , common .Newline ,
562
+ ] +
563
+ disable_trace +
564
+ [
565
+ '-f' , infmt , common .Newline ,
566
+ '-O' , outfmt , common .Newline ,
567
+ infile , common .Newline ,
568
+ outfile , common .Newline ,
569
+ ]
570
+ )
565
571
566
572
def resolve_args (defaults , args , extra_args ):
567
573
if extra_args is None :
0 commit comments