You are not logged in.

#1 2012-08-06 21:50:24

workdowg
Member
Registered: 2010-12-31
Posts: 69

Grub2 doesn't read 20_linux_xen

Ok, very frustrated. If I still had grub-legacy this would have been a piece of cake.

How do I get grub2 to recognize and give me menu options for xen?
It is "looking at it" because when I changed it to 09_linux_xen it moved it up in /boot/grub/grub.cfg

### BEGIN /etc/grub.d/09_linux_xen ###
### END /etc/grub.d/09_linux_xen ###

Is there a script I'm failing to run?

The wiki gives old advice/instructions.

Thanks!

Offline

#2 2012-09-08 15:17:50

polito
Member
Registered: 2012-04-28
Posts: 7

Re: Grub2 doesn't read 20_linux_xen

+1

Offline

#3 2012-09-08 15:20:41

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: Grub2 doesn't read 20_linux_xen

You can create /boot/grub/custom.cfg and it will be shown when you boot the system, or check whether the executable flag is set on /etc/grub.d/20_linux_xen .

Offline

#4 2012-09-08 18:13:14

polito
Member
Registered: 2012-04-28
Posts: 7

Re: Grub2 doesn't read 20_linux_xen

Still not creating grub entries automatically

but my error in this

menuentry "Arch Linux(XEN 0)" {
    set root=(hd1,4)
    multiboot /boot/xen-4.1.3.gz dom0_mem=4096M
    module /boot/vmlinuz-linux root=/dev/disk/by-uuid/24162965-0871-4c70-a575-9c1f72284931 ro
    module /boot/initramfs-linux.img
}

I got all the time

ERROR: /sbin/init does not exist. Error: Root device mounted successfully, but /sbin/init does not exist. Bailing out, you are on your own.

Because the UUID was not the right one hmm

Last edited by polito (2012-09-08 20:26:59)

Offline

#5 2012-09-11 13:13:53

TripleSpeeder
Member
Registered: 2011-05-02
Posts: 47

Re: Grub2 doesn't read 20_linux_xen

I also found no solution yet to this problem. Also my bash skills are not sufficient to understand what the heck is happening inside "20_linux_xen" :-( For now i added an according entry in the custom file to add xen. But would like to get the "automatic" solution working...

Offline

#6 2012-11-05 07:34:04

upalmin
Member
Registered: 2012-11-05
Posts: 1

Re: Grub2 doesn't read 20_linux_xen

For automatic solution to work with 20_linux_xen script, you need to provide up to date kernel config-linux file in one of the following locations:

/boot/config-${version}
/boot/config-${alt_version}
/etc/kernels/kernel-config-${version}

Quick workaround is to create kernel config file from working kernel.
zcat  /proc/config.gz >/boot/config-linux

Config file must be updated every time kernel gets updated!

Uros

Offline

Board footer

Powered by FluxBB