From f65be064ad219ed14281dd5ff385091398292aa3 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Mon, 24 Mar 2025 17:34:39 -0600 Subject: [PATCH] Add indicated sleep and reboot during grub boot - Closes: #1791 Signed-off-by: Jonathon Anderson --- CHANGELOG.md | 1 + etc/grub/grub.cfg.ww | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20264432..8465944f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - assume ipxe template=default if not set. #1808, #1813 - Display a warning during overlay build if an overlay list is empty. #1808 - Fix processing of UNDEF and UNSET during `wwctl set`. #1837 +- Actually cause grub to sleep and reboot when log messages indiacte. #1838 ### Changed diff --git a/etc/grub/grub.cfg.ww b/etc/grub/grub.cfg.ww index c3ad0727..9c3413a1 100644 --- a/etc/grub/grub.cfg.ww +++ b/etc/grub/grub.cfg.ww @@ -58,6 +58,8 @@ menuentry "Single-stage boot" --id single-stage { echo "!! Unable to load kernel." echo "!! Rebooting in 15s..." echo "!!" + sleep 15 + reboot fi echo "Downloading images..." @@ -71,6 +73,8 @@ menuentry "Single-stage boot" --id single-stage { echo "!! Unable to load images." echo "!! Rebooting in 15s..." echo "!!" + sleep 15 + reboot fi echo "Booting..." @@ -101,6 +105,8 @@ menuentry "Single-stage boot (no compression)" --id single-stage-nocompress { echo "!! Unable to load kernel." echo "!! Rebooting in 15s..." echo "!!" + sleep 15 + reboot fi echo "Downloading images..." @@ -114,6 +120,8 @@ menuentry "Single-stage boot (no compression)" --id single-stage-nocompress { echo "!! Unable to load images." echo "!! Rebooting in 15s..." echo "!!" + sleep 15 + reboot fi echo "Booting..." @@ -151,6 +159,8 @@ menuentry "Two stage boot with dracut" --id dracut { echo "!! Unable to load kernel." echo "!! Rebooting in 15s..." echo "!!" + sleep 15 + reboot fi echo "Downloading initramfs..." @@ -161,6 +171,8 @@ menuentry "Two stage boot with dracut" --id dracut { echo "!! Unable to load initramfs." echo "!! Rebooting in 15s..." echo "!!" + sleep 15 + reboot fi echo "Booting..."