summaryrefslogtreecommitdiffstats
path: root/snippets
diff options
context:
space:
mode:
authorJames Laska <jlaska@redhat.com>2009-02-19 16:49:22 -0500
committerJames Laska <jlaska@redhat.com>2009-02-20 07:42:26 -0500
commit8a2192a01d08b3f95dade9f9c323a53aa2fab9fe (patch)
treed07782c80dce7083993210cb448acc1a18507eb9 /snippets
parent3f0b109927e0e239ab8fa30b4f7a17b58db332d5 (diff)
downloadcobbler-8a2192a01d08b3f95dade9f9c323a53aa2fab9fe.tar.gz
cobbler-8a2192a01d08b3f95dade9f9c323a53aa2fab9fe.tar.xz
cobbler-8a2192a01d08b3f95dade9f9c323a53aa2fab9fe.zip
A SNIPPET that allows RHEL4 and older distros to reboot properly after install
Diffstat (limited to 'snippets')
-rw-r--r--snippets/post_s390_reboot10
1 files changed, 10 insertions, 0 deletions
diff --git a/snippets/post_s390_reboot b/snippets/post_s390_reboot
new file mode 100644
index 00000000..2534cd76
--- /dev/null
+++ b/snippets/post_s390_reboot
@@ -0,0 +1,10 @@
+## HACK to allow RHEL4 and previous s390 installs to reboot
+#if $arch.startswith("s390"):
+%post --nochroot
+pid=\$(cat /var/run/init.pid)
+[ -z "\$pid" ] && pid=\$(pidof init)
+kill -12 \$pid
+pid=\$(cat /var/run/loader.run)
+[ -z "\$pid" ] && pid=\$(pidof loader)
+kill \$pid
+#end if