aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/kickstart_pre_log
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/cobbler/snippets/kickstart_pre_log')
-rw-r--r--deploy/adapters/cobbler/snippets/kickstart_pre_log12
1 files changed, 12 insertions, 0 deletions
diff --git a/deploy/adapters/cobbler/snippets/kickstart_pre_log b/deploy/adapters/cobbler/snippets/kickstart_pre_log
new file mode 100644
index 00000000..fe71c592
--- /dev/null
+++ b/deploy/adapters/cobbler/snippets/kickstart_pre_log
@@ -0,0 +1,12 @@
+set -x -v
+exec 1>/tmp/ks-pre.log 2>&1
+
+# Once root's homedir is there, copy over the log.
+while : ; do
+ sleep 10
+ if [ -d /mnt/sysimage/root ]; then
+ cp /tmp/ks-pre.log /mnt/sysimage/root/
+ logger "Copied %pre section log to system"
+ break
+ fi
+done &