ShiroiKuma n00b


Joined: 09 Nov 2012 Posts: 17 Location: UK
|
Posted: Fri Mar 01, 2013 10:42 am Post subject: [SOLVED] Grub2 & Xen |
|
|
I'm trying to get grub2-mkconfig to automatically add entries for Xen, as per the /etc/grub.d/20_linux_xen script. I've read elsewhere that I need to have a /boot/config-{version} file that matches my kernel, which I do. Yet it just won't add my entry for the Xen kernel.
In /boot I have
| Code: |
kernel-3.7.5-hardened-r1
config-3.7.5-hardened-r1
kernel-3.7.5-hardened-r1-xen
config-3.7.5-hardened-r1-xen
xen-4.2.0.gz
xen.gz -> xen-4.2.0.gz
xen-4.2.gz -> xen-4.2.0.gz
xen-4.gz -> xen-4.2.0.gz
xen-syms-4.2.0
|
I added the -xen kernel/config to see if it made a difference, now I just get 2 boot entries instead, but still no one generated from the 20_linux_xen script in grub.d.
Looking at that script with my very limited bash scripting skills, it looks like it should be finding those files and creating entries, but I just can't work it out. What else could be missing?
EDIT While I was posting this, I was recompiling my kernel with Xen Guest Support enabled. I re-ran grub2-mkconfig and now it works. Re-looking at the script, I can see that CONFIG_XEN_PRIVILEGED_GUEST=y is the key to Grub2 automatically detecting it. |
|