diff options
-rw-r--r-- | snippets/post_s390_reboot | 10 |
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 |