Hi all!I'm using xen on gentoo with grub2 and seems there is and issue with default xen detection mechanism because it also adds menu entries for all xen symlinks in boot and for xen-syms [see grub.cfg.unpatched] that shouldn't happen. Contents of my boot directory is
x201 ~ # ls -l /boot total 30020-rw-r--r-- 1 root root 2549447 Apr 2 18:03 System.map-genkernel-x86_64-2.6.38-gentoo-r1 -rw-r--r-- 1 root root 2574345 Apr 3 01:53 System.map-genkernel-x86_64-2.6.39-rc1-gentoo
lrwxrwxrwx 1 root root 1 Jul 20 2010 boot -> . drwxr-xr-x 3 root root 6144 Apr 3 15:00 grub-rw-r--r-- 1 root root 11801312 Apr 2 18:03 kernel-genkernel-x86_64-2.6.38-gentoo-r1 -rw-r--r-- 1 root root 11401248 Apr 3 01:53 kernel-genkernel-x86_64-2.6.39-rc1-gentoo
drwx------ 2 root root 1024 Mar 26 19:58 lost+found -rw-r--r-- 1 root root 736650 Mar 26 03:34 xen-4.1.0.gz lrwxrwxrwx 1 root root 12 Mar 26 03:34 xen-4.1.gz -> xen-4.1.0.gz lrwxrwxrwx 1 root root 12 Mar 26 03:34 xen-4.gz -> xen-4.1.0.gz -rw-r--r-- 1 root root 1539952 Mar 26 03:34 xen-syms-4.1.0 lrwxrwxrwx 1 root root 12 Mar 26 03:34 xen.gz -> xen-4.1.0.gzWith patch for 20_linux_xen [see grub2-xen.patch] i get sane menu entries [see grub.cfg.patched]
-- Best Regards, Alexey 'Alexxy' Shvetsov Petersburg Nuclear Physics Institute, Russia Department of Molecular and Radiation Biophysics Gentoo Team Ru Gentoo Linux Dev mailto:alexx...@gmail.com mailto:ale...@gentoo.org mailto:ale...@omrb.pnpi.spb.ru
grub.cfg.unpatched
Description: application/empty
grub.cfg.patched
Description: application/empty
--- 20_linux_xen.orig 2011-04-03 14:40:54.000000000 +0400 +++ 20_linux_xen 2011-04-03 15:31:27.000000000 +0400 @@ -112,7 +112,7 @@ exit 0 fi xen_list=`for i in /boot/xen*; do - if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi +if ( grub_file_is_not_garbage "$i" && [ ! -L $i ] && [[ "$i" != *syms* ]] ) ; then echo -n "$i " ; fi done` prepare_boot_cache=
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel