Skip to content

Commit

Permalink
fix legacy booting from USB stick
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Jan 5, 2020
1 parent 6386caa commit 43a22ca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions conf/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ menuentry "Boot OS from first partition on first disk" {
echo "cannot find grub.cfg"
sleep 7
fi
elif [ "$root" = "hd0" ]; then
set root=(hd1)
# legacy BIOS booting
elif [ -d (cd) ]; then
set root=(hd0)
chainloader +1
else
set root=(hd0)
set root=(hd1)
chainloader +1
fi
}
Expand Down

0 comments on commit 43a22ca

Please sign in to comment.