@@ -468,11 +468,11 @@ def writeExtLinux(self, dst_file = None):
468
468
if self .serial :
469
469
if self .serial .get ('flow' , None ) is None :
470
470
print ("serial %s %s" % (self .serial ['port' ],
471
- self .serial ['baud' ]), file = fh )
471
+ self .serial ['baud' ]), file = fh )
472
472
else :
473
473
print ("serial %s %s %s" % (self .serial ['port' ],
474
- self .serial ['baud' ],
475
- self .serial ['flow' ]), file = fh )
474
+ self .serial ['baud' ],
475
+ self .serial ['flow' ]), file = fh )
476
476
if self .default :
477
477
print ("default " + self .default , file = fh )
478
478
print ("prompt 1" , file = fh )
@@ -486,13 +486,13 @@ def writeExtLinux(self, dst_file = None):
486
486
print (" # " + m .title , file = fh )
487
487
if m .tboot :
488
488
print (" kernel mboot.c32" , file = fh )
489
- print (" append %s %s --- %s %s --- %s %s --- %s" % \
490
- (m .tboot , m .tboot_args , m .hypervisor , m .hypervisor_args ,
491
- m .kernel , m .kernel_args , m .initrd ), file = fh )
489
+ print (" append %s %s --- %s %s --- %s %s --- %s" %
490
+ (m .tboot , m .tboot_args , m .hypervisor , m .hypervisor_args ,
491
+ m .kernel , m .kernel_args , m .initrd ), file = fh )
492
492
elif m .hypervisor :
493
493
print (" kernel mboot.c32" , file = fh )
494
- print (" append %s %s --- %s %s --- %s" % \
495
- (m .hypervisor , m .hypervisor_args , m .kernel , m .kernel_args , m .initrd ), file = fh )
494
+ print (" append %s %s --- %s %s --- %s" %
495
+ (m .hypervisor , m .hypervisor_args , m .kernel , m .kernel_args , m .initrd ), file = fh )
496
496
else :
497
497
print (" kernel " + m .kernel , file = fh )
498
498
print (" append " + m .kernel_args , file = fh )
@@ -508,8 +508,8 @@ def writeGrub(self, dst_file = None):
508
508
print ("# location " + self .location , file = fh )
509
509
510
510
if self .serial :
511
- print ("serial --unit=%s --speed=%s" % ( self . serial [ 'port' ],
512
- self .serial ['baud' ]), file = fh )
511
+ print ("serial --unit=%s --speed=%s" %
512
+ ( self . serial [ 'port' ], self .serial ['baud' ]), file = fh )
513
513
print ("terminal --timeout=10 console serial" , file = fh )
514
514
else :
515
515
print ("terminal console" , file = fh )
@@ -542,7 +542,7 @@ def writeGrub2(self, dst_file = None):
542
542
543
543
if self .serial :
544
544
print ("serial --unit=%s --speed=%s" % (self .serial ['port' ],
545
- self .serial ['baud' ]), file = fh )
545
+ self .serial ['baud' ]), file = fh )
546
546
print ("terminal_input serial console" , file = fh )
547
547
print ("terminal_output serial console" , file = fh )
548
548
if self .default :
0 commit comments