Skip to content

Commit

Permalink
add gpt partitions, skip devices using continue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Dec 26, 2023
1 parent 6c24f8f commit b1d0023
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conf/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,17 @@ else
# legacy BIOS booting
# detect which disk has a DOS partitions, and boot the MBR via chainloader
found=false
for d in (hd*,msdos*); do
for d in (hd*,msdos*) (hd*,gpt*); do
if [ "$found" == "false" ]; then
regexp -s device '^\((.+),' $d
if [ -e "($device)/FAI-CD" ]; then
# FAI-CD detected, ignore it
device=""
continue
fi
if [ "$device" != "" ]; then
if [ "$device" == "hd*" ]; then
device=hd0
continue
fi
found=true
set root=($device)
Expand Down

0 comments on commit b1d0023

Please sign in to comment.