From: Frank Brehm Date: Thu, 11 Jun 2020 16:00:12 +0000 (+0200) Subject: Doch das herkömmliche Logging X-Git-Tag: 2.1.2^2~9^2~31^2~51 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=23f08375d74b5000a1d9df76b52cc84a2651c4ab;p=pixelpark%2Fcreate-vmware-tpl.git Doch das herkömmliche Logging --- 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: