From 4fe2a72cb03dc84d6fa7313df60a3e0a87522672 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 4 Mar 2019 10:01:39 -0500 Subject: [PATCH] Try to use systemd-run for reboot This has an improved chance of surviving yast process. --- xCAT/postscripts/reboot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/reboot b/xCAT/postscripts/reboot index 0439ed659..fd0449f1d 100755 --- a/xCAT/postscripts/reboot +++ b/xCAT/postscripts/reboot @@ -3,8 +3,8 @@ #(C)IBM Corp # Lenovo(c) 2019 # -if grep NAME /etc/os-release | egrep '(SLE|SUSE)' > /dev/null; then - (sleep 180;/sbin/reboot) & +if grep NAME /etc/os-release | egrep '(SLE|SUSE)' > /dev/null && [ -x /usr/bin/systemd-run ]; then + systemd-run --on-active=90 --timer-property=AccuracySec=10s reboot else (sleep 75;/sbin/reboot) & fi