diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-27 04:02:34 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-27 04:02:34 -0500 |
commit | 97a9fa2a372686cc873d1f966a769d3d80a7f054 (patch) | |
tree | 5b31a1ecbb1830f395f90ce032ff7d566171e996 /user/grub/grub-xen-host_grub.cfg | |
parent | 93c5f6a80e136230cc7972d1c36e2bd922f83d52 (diff) | |
download | packages-97a9fa2a372686cc873d1f966a769d3d80a7f054.tar.gz packages-97a9fa2a372686cc873d1f966a769d3d80a7f054.tar.bz2 packages-97a9fa2a372686cc873d1f966a769d3d80a7f054.tar.xz packages-97a9fa2a372686cc873d1f966a769d3d80a7f054.zip |
user/grub: pull in, take, modernise a bit
Diffstat (limited to 'user/grub/grub-xen-host_grub.cfg')
-rw-r--r-- | user/grub/grub-xen-host_grub.cfg | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/user/grub/grub-xen-host_grub.cfg b/user/grub/grub-xen-host_grub.cfg new file mode 100644 index 000000000..f0eecbba7 --- /dev/null +++ b/user/grub/grub-xen-host_grub.cfg @@ -0,0 +1,24 @@ +# First search for a suitable grub to chainload +if search -s -f /boot/xen/pvboot-@@PVBOOT_ARCH@@.elf ; then + echo "Chainloading (${root})/boot/xen/pvboot-@@PVBOOT_ARCH@@.elf" + multiboot "/boot/xen/pvboot-@@PVBOOT_ARCH@@.elf" + boot +fi + +if search -s -f /xen/pvboot-@@PVBOOT_ARCH@@.elf ; then + echo "Chainloading (${root})/xen/pvboot-@@PVBOOT_ARCH@@.elf" + multiboot "/xen/pvboot-@@PVBOOT_ARCH@@.elf" + boot +fi + +# Second try looking for grub.cfg + +if search -s -f /boot/grub/grub.cfg ; then + echo "Reading (${root})/boot/grub/grub.cfg" + configfile /boot/grub/grub.cfg +fi + +if search -s -f /grub/grub.cfg ; then + echo "Reading (${root})/grub/grub.cfg" + configfile /grub/grub.cfg +fi |