From 2cf928d6b7d134dc78f64aa1b49d36148808a91d Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Tue, 27 Jun 2023 14:08:57 +0200 Subject: [PATCH] reboot also without systemd Signed-off-by: Christian Goll --- CHANGELOG.md | 2 ++ overlays/wwinit/init | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06c5cb06..81c84b6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 when reading in the configurations - Write log messages to stderr rather than stdout. #768 +- realy reboot also without systemd + ## [4.4.0] 2023-01-18 ### Added diff --git a/overlays/wwinit/init b/overlays/wwinit/init index a6999991..af754f94 100755 --- a/overlays/wwinit/init +++ b/overlays/wwinit/init @@ -11,7 +11,7 @@ if test -f "/warewulf/config"; then else echo "ERROR: Warewulf configuration file not found... rebooting in 1 minute" sleep 60 - /sbin/reboot + echo b > /proc/sysrq-trigger || /sbin/reboot fi echo "Warewulf v4 is now booting: $WWHOSTNAME" @@ -53,4 +53,4 @@ fi echo echo "There was a problem with the provisioning process, rebooting in 1 minute..." sleep 60 -/sbin/reboot \ No newline at end of file +echo b > /proc/sysrq-trigger || /sbin/reboot