]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
ts-centos-xen-pkg-install: Adjust daemons configuration
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 14 Nov 2017 17:00:57 +0000 (17:00 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 18 Dec 2017 16:47:18 +0000 (16:47 +0000)
Ajust configuration of xenconsoled and libvirtd.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
ts-centos-xen-pkg-install

index e10456d00a11edc81050fbe25edbc6c7f42bb9eb..0327b72981d0a4592645e3b400a1ea925be144a0 100755 (executable)
@@ -68,6 +68,15 @@ END
     target_install_packages($ho, @xen_packages);
 }
 
+sub adjustconfig () {
+    target_editfile_root($ho, '/etc/sysconfig/xencommons',
+       sub { target_editfile_kvp_replace("XENCONSOLED_TRACE", "guest") });
+
+    target_editfile_root($ho, '/etc/libvirt/libvirtd.conf',
+               sub { target_editfile_kvp_replace("log_level", "1") })
+       if toolstack($ho)->{Name} eq "libvirt";
+}
+
 
 sub setupboot () {
     logm("ready to boot Xen");
@@ -76,4 +85,5 @@ sub setupboot () {
 die if @hos > 1;
 $ho= $hos[0];
 packages_setup();
+adjustconfig();
 setupboot();