initial commit of scripts to build pvgrub image
[invirt/third/pvgrub.git] / boot / grub-internal / grub-internal.cfg
diff --git a/boot/grub-internal/grub-internal.cfg b/boot/grub-internal/grub-internal.cfg
new file mode 100644 (file)
index 0000000..8d67fe3
--- /dev/null
@@ -0,0 +1,32 @@
+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