File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -759,7 +759,7 @@ def execute(self):
759759 if os .path .exists ("/etc/init/libvirt-bin.conf" ):
760760 replace_line ("/etc/init/libvirt-bin.conf" , "exec /usr/sbin/libvirtd" ,"exec /usr/sbin/libvirtd -d -l" )
761761 else :
762- replace_or_add_line ("/etc/default/libvirt-bin" ,"libvirtd_opts=" ,"libvirtd_opts='-l -d '" )
762+ replace_or_add_line ("/etc/default/libvirt-bin" ,"libvirtd_opts=" ,"libvirtd_opts='-l'" )
763763
764764 else :
765765 raise AssertionError ("Unsupported distribution" )
Original file line number Diff line number Diff line change @@ -526,9 +526,12 @@ def setupLiveMigration(self):
526526 if os .path .exists ("/etc/init/libvirt-bin.conf" ):
527527 cfo = configFileOps ("/etc/init/libvirt-bin.conf" , self )
528528 cfo .replace_line ("exec /usr/sbin/libvirtd" ,"exec /usr/sbin/libvirtd -d -l" )
529- else :
529+ elif os . path . exists ( "/etc/default/libvirt-bin" ) :
530530 cfo = configFileOps ("/etc/default/libvirt-bin" , self )
531- cfo .replace_or_add_line ("libvirtd_opts=" ,"libvirtd_opts='-l -d'" )
531+ cfo .replace_or_add_line ("libvirtd_opts=" ,"libvirtd_opts='-l'" )
532+ elif os .path .exists ("/etc/default/libvirtd" ):
533+ cfo = configFileOps ("/etc/default/libvirtd" , self )
534+ cfo .replace_or_add_line ("libvirtd_opts=" ,"libvirtd_opts='-l'" )
532535
533536 def config (self ):
534537 try :
You can’t perform that action at this time.
0 commit comments