+insmod part_msdos
+insmod part_gpt
+insmod normal
+insmod search_fs_file
+insmod fshelp
+insmod archelp
+insmod ext2
+insmod fat
+insmod xfs
+insmod reiserfs
+insmod udf
+insmod iso9660
+insmod btrfs
+insmod squash4
+insmod xzio
+insmod gzio
+insmod configfile
+
+# first look for a separate /boot
+search.file /grub/grub.cfg root
+if [ "$root" != "memdisk" ]; then
+ # we found it
+ normal /grub/grub.cfg
+else
+ # try /boot/grub on the root
+ search.file /boot/grub/grub.cfg root
+ if [ "$root" != "memdisk" ]; then
+ normal /boot/grub/grub.cfg
+ fi
+fi
+# we didn't find anything. give up and let grub show a prompt.
+normal