From 6785eb3adcb02dce33802a6146410ca244bc6931 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 28 Feb 2019 10:35:32 -0500 Subject: [PATCH] Extend reboot timer on SUSE The SUSE postscripts run a long time before installer completes, extend the timeout to facilitate that completion. --- xCAT/postscripts/reboot | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/reboot b/xCAT/postscripts/reboot index 6aace8cb7..0439ed659 100755 --- a/xCAT/postscripts/reboot +++ b/xCAT/postscripts/reboot @@ -1,9 +1,13 @@ #!/bin/sh # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html #(C)IBM Corp +# Lenovo(c) 2019 # - -(sleep 75;/sbin/reboot) & +if grep NAME /etc/os-release | egrep '(SLE|SUSE)' > /dev/null; then + (sleep 180;/sbin/reboot) & +else + (sleep 75;/sbin/reboot) & +fi exit 0