Extract GRUB embedded config to separate file and address code review feedback

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-30 18:37:33 +00:00
parent 24626b541a
commit 20115fb370
2 changed files with 18 additions and 15 deletions

View File

@@ -0,0 +1,11 @@
# Embedded bootstrap configuration for GRUB
# This config tells GRUB where to find the real configuration file
search --no-floppy --set=root --label @ESP_LABEL@
if [ -e /boot/grub/grub.cfg ]; then
configfile /boot/grub/grub.cfg
else
echo "Error: Could not find /boot/grub/grub.cfg"
echo "Press any key to enter GRUB command line..."
sleep --verbose --interruptible 99999
fi