Skip to content

Commit

Permalink
Merge pull request #585 from amazonlinux/grub-debug
Browse files Browse the repository at this point in the history
grub: core.img: Reboot if configfile fails
  • Loading branch information
iliana committed Dec 11, 2019
2 parents 5efecd5 + 516db58 commit a8e88af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/grub/core.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ set root=$boot_dev
set prefix=($root)/grub
export boot_uuid
configfile /grub/grub.cfg
echo "boot failed (device ($boot_dev), uuid $boot_uuid)"
echo "rebooting in 30 seconds..."
sleep 30
reboot
2 changes: 1 addition & 1 deletion packages/grub/grub.spec
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ grub2-mkimage \
%else
efi_gop \
%endif
configfile ext2 gptprio linux normal part_gpt search_fs_uuid
configfile echo ext2 gptprio linux normal part_gpt reboot sleep

%if %{_cross_arch} == x86_64
install -m 0644 ./grub-core/boot.img \
Expand Down

0 comments on commit a8e88af

Please sign in to comment.