]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Doch das herkömmliche Logging
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 11 Jun 2020 16:00:12 +0000 (18:00 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 11 Jun 2020 16:00:12 +0000 (18:00 +0200)
kickstart/template-centos8.ks
lib/cr_vmware_tpl/handler.py

index 5aeb9b99c922f1db8b37fbc749e7d7279bace7c7..eedf53f566695d2581556173978ef92d48c254ee 100644 (file)
@@ -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
index 6501e3e49180a8e7d927a324c347f0156b09df5a..f32783cf9cd1cfcc00b1c024b5d4c414d01f1c0a 100644 (file)
@@ -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: