Bug#505517: grub-pc: patches are working

Eric Veiras Galisson bugs at sietch-tabr.com
Fri Oct 16 12:45:07 UTC 2009


Package: grub-pc
Version: 1.96+20080724-16
Followup-For: Bug #505517


Just a correction about my previous mail: patches works well when execution mode (+x) is applied to file /etc/grub.d/09_xen

With these patches, xen kernels are automagically added correctly as you can see on the following excerpt from my /boot/grub/grub.cfg

Please note that these patches don't handle xen kernels completely well as normal entries (managed by /etc/grub.d/10_linux) are also created as you can see too.


### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/09_xen ###
set root=(hd1,1)
search --fs-uuid --set 7a62059a-60e3-4e3d-8fe8-85451427b01f
menuentry "Debian Xen hypervisor 3.2-1-amd64, linux 2.6.26-2-xen-amd64" {
	multiboot	/xen-3.2-1-amd64.gz 
	module		/vmlinuz-2.6.26-2-xen-amd64 root=/dev/mapper/vg--system--xen-lv--root ro  
	module		/initrd.img-2.6.26-2-xen-amd64
}
menuentry "Debian Xen hypervisor 3.2-1-amd64, linux 2.6.26-2-xen-amd64 (single-user mode)" {
	multiboot       /xen-3.2-1-amd64.gz 
	module		/vmlinuz-2.6.26-2-xen-amd64 root=/dev/mapper/vg--system--xen-lv--root ro single 
	module		/initrd.img-2.6.26-2-xen-amd64
}
### END /etc/grub.d/09_xen ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.26-2-xen-amd64" {
	set root=(hd1,1)
	search --fs-uuid --set 7a62059a-60e3-4e3d-8fe8-85451427b01f
	linux	/vmlinuz-2.6.26-2-xen-amd64 root=/dev/mapper/vg--system--xen-lv--root ro  
	initrd	/initrd.img-2.6.26-2-xen-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.26-2-xen-amd64 (single-user mode)" {
	set root=(hd1,1)
	search --fs-uuid --set 7a62059a-60e3-4e3d-8fe8-85451427b01f
	linux	/vmlinuz-2.6.26-2-xen-amd64 root=/dev/mapper/vg--system--xen-lv--root ro single 
	initrd	/initrd.img-2.6.26-2-xen-amd64
}

### END /etc/grub.d/10_linux ###





More information about the Pkg-grub-devel mailing list