]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Display of Postinstall Log
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 23 Jun 2020 08:42:04 +0000 (10:42 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 23 Jun 2020 08:42:04 +0000 (10:42 +0200)
kickstart/template-centos8.ks
lib/cr_vmware_tpl/handler.py

index d3784d78c1fa1e2af185d6dd13ba62b0b31f3ff6..f1adae45dce4c65361d84038925255bf5409f3fa 100644 (file)
@@ -117,7 +117,7 @@ exec < /dev/console &> >(tee -a "$POST_LOG")
 
 ### debug
 
-set -x
+set -x
 echo "cobbler profile = $profile_name"
 
 echo
index 30bf86961238cecef1a58a24a387a391f2931e0f..e87e097103eecf4ccfa140464a2df67b0fc1c90b 100644 (file)
@@ -42,7 +42,7 @@ from .cobbler import CobblerError, Cobbler
 
 from .xlate import XLATOR
 
-__version__ = '1.7.3'
+__version__ = '1.7.4'
 
 LOG = logging.getLogger(__name__)
 TZ = pytz.timezone('Europe/Berlin')
@@ -310,8 +310,7 @@ class CrTplHandler(BaseHandler):
                     return 10
                 else:
                     self.poweroff_vm()
-
-            self.cobbler.remove_system(tpl_sysname)
+                self.cobbler.remove_system(tpl_sysname)
 
         return 0
 
@@ -680,6 +679,24 @@ class CrTplHandler(BaseHandler):
             fi
         done
 
+        if [ -f /var/log/anaconda/post-install.log ] ; then
+            echo
+            echo "Post install log:"
+            echo
+            echo "-----------------------------------------------------------"
+            cat /var/log/anaconda/post-install.log
+            echo "-----------------------------------------------------------"
+            echo
+        else
+            echo
+            echo "###########################################################"
+            echo
+            echo "Post install log not found!"
+            echo
+            echo "###########################################################"
+            echo
+        fi
+
         """)
 
         try: