From 23f08375d74b5000a1d9df76b52cc84a2651c4ab Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 11 Jun 2020 18:00:12 +0200 Subject: [PATCH] =?utf8?q?Doch=20das=20herk=C3=B6mmliche=20Logging?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- kickstart/template-centos8.ks | 6 +++--- lib/cr_vmware_tpl/handler.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kickstart/template-centos8.ks b/kickstart/template-centos8.ks index 5aeb9b9..eedf53f 100644 --- a/kickstart/template-centos8.ks +++ b/kickstart/template-centos8.ks @@ -102,12 +102,12 @@ yum-utils # p7zip # screen -%post --interpreter=/usr/bin/bash --log=/var/log/post-install.log +%post --interpreter=/usr/bin/bash ### output to console -exec < /dev/tty6 > /dev/tty6 2> /dev/tty6 -chvt 6 clear +POST_LOG="/var/log/post-install.log" +exec < /dev/console &> >(tee -a "$POST_LOG") ###################################################################################### # Installation of pixelpark standard applications diff --git a/lib/cr_vmware_tpl/handler.py b/lib/cr_vmware_tpl/handler.py index 6501e3e..f32783c 100644 --- a/lib/cr_vmware_tpl/handler.py +++ b/lib/cr_vmware_tpl/handler.py @@ -42,7 +42,7 @@ from .cobbler import CobblerError, Cobbler from .xlate import XLATOR -__version__ = '1.5.10' +__version__ = '1.5.11' LOG = logging.getLogger(__name__) TZ = pytz.timezone('Europe/Berlin') @@ -288,7 +288,7 @@ class CrTplHandler(BaseHandler): self.vsphere.poweron_vm(self.tpl_vm, max_wait=self.config.max_wait_for_poweron_vm) self.ts_start_install = time.time() - self.wait_for_finish_install() +# self.wait_for_finish_install() # self.get_postinstall_error() # if self.abort: -- 2.39.5