diff options
Diffstat (limited to 'deploy/adapters/cobbler/snippets/log_ks_pre')
-rw-r--r-- | deploy/adapters/cobbler/snippets/log_ks_pre | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/deploy/adapters/cobbler/snippets/log_ks_pre b/deploy/adapters/cobbler/snippets/log_ks_pre new file mode 100644 index 00000000..98eeb23b --- /dev/null +++ b/deploy/adapters/cobbler/snippets/log_ks_pre @@ -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 &
|