Skip to content

Commit

Permalink
ignore device containing the FAI CD, print earning if no grub.cfg was…
Browse files Browse the repository at this point in the history
… found
  • Loading branch information
Mrfai committed Dec 2, 2023
1 parent 412c9c0 commit a52800a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions conf/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,24 @@ else
for d in (hd*,msdos*); do
if [ "$found" == "false" ]; then
regexp -s device '^\((.+),' $d
if [ -e "($device)/FAI-CD" ]; then
# FAI-CD detected, ignore it
device=""
fi
if [ "$device" != "" ]; then
found=true
set root=($device)
chainloader +1
fi
fi
done
echo "Booting from $device"
sleep 1

if [ "$device" != "" ]; then
echo "Booting from $device"
sleep 2
else
echo "Cannot find grub.cfg"
sleep 7
fi
fi
}

Expand Down

0 comments on commit a52800a

Please sign in to comment.