All of lore.kernel.org
 help / color / mirror / Atom feed
* Grub2 and Xen menu entries
@ 2011-04-03 11:36 Alexey Shvetsov
  2012-02-27  0:08 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Shvetsov @ 2011-04-03 11:36 UTC (permalink / raw)
  To: Grub-devel

[-- Attachment #1: Type: text/plain, Size: 1539 bytes --]

 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.gz

 With 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:alexxyum@gmail.com
 mailto:alexxy@gentoo.org
 mailto:alexxy@omrb.pnpi.spb.ru

[-- Attachment #2: grub.cfg.unpatched --]
[-- Type: application/x-empty, Size: 0 bytes --]

[-- Attachment #3: grub.cfg.patched --]
[-- Type: application/x-empty, Size: 0 bytes --]

[-- Attachment #4: grub2-xen.patch --]
[-- Type: text/plain, Size: 389 bytes --]

--- 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=
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Grub2 and Xen menu entries
  2011-04-03 11:36 Grub2 and Xen menu entries Alexey Shvetsov
@ 2012-02-27  0:08 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 0 replies; 2+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-02-27  0:08 UTC (permalink / raw)
  To: grub-devel

On 03.04.2011 13:36, Alexey Shvetsov wrote:
> 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
>
Just for record: this patch wasn't accepted because it's not 
POSIX-compatible. Please fix this.

-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-27  0:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-03 11:36 Grub2 and Xen menu entries Alexey Shvetsov
2012-02-27  0:08 ` Vladimir 'φ-coder/phcoder' Serbinenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.