summaryrefslogtreecommitdiffstats
path: root/debian/grub-xen-host_grub.cfg
blob: f0eecbba7dae4d8d22d761646472eec34e99656b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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