grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remove dependency on /boot/config-* in grub.d/20_linux_xen
@ 2013-07-15 18:00 Konrad Rzeszutek Wilk
  2013-07-25 21:24 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2013-11-10 20:40 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 2 replies; 10+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-07-15 18:00 UTC (permalink / raw)
  To: grub-devel

Hey,

There is a discussion on the linux-kernel mailing list in which the
Linus states that "if you depend on any config file, you're broken
by definition" (https://lkml.org/lkml/2013/7/15/368).

The 20_linux_xen does that however it should not do it. In all fairness
this check is a bit of old as pretty much any upstream kernel
is being built by default from distros to boot with Xen. If it does
not, Xen will print a message telling the user that Linux does not
have the required components.

This patch removes said check.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

=== modified file 'util/grub.d/20_linux_xen.in'
--- util/grub.d/20_linux_xen.in	2013-03-24 13:03:33 +0000
+++ util/grub.d/20_linux_xen.in	2013-07-15 17:34:32 +0000
@@ -144,20 +144,8 @@
 }
 
 linux_list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do
-    if grub_file_is_not_garbage "$i"; then
-    	basename=$(basename $i)
-	version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")
-	dirname=$(dirname $i)
-	config=
-	for j in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
-	    if test -e "${j}" ; then
-		config="${j}"
-		break
-	    fi
-	done
-        if (grep -qx "CONFIG_XEN_DOM0=y" "${config}" 2> /dev/null || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}" 2> /dev/null); then echo -n "$i " ; fi
-    fi
-    done`
+    if grub_file_is_not_garbage "$i"; then echo -n "$i "; fi
+	    done`
 if [ "x${linux_list}" = "x" ] ; then
     exit 0
 fi



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

end of thread, other threads:[~2013-11-14 11:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-15 18:00 [PATCH] remove dependency on /boot/config-* in grub.d/20_linux_xen Konrad Rzeszutek Wilk
2013-07-25 21:24 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-26 18:50   ` konrad wilk
2013-07-26 19:02     ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-29 14:52       ` Konrad Rzeszutek Wilk
2013-07-29 16:52         ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-10 20:40 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-11 13:51   ` Konrad Rzeszutek Wilk
2013-11-13 13:56   ` Konrad Rzeszutek Wilk
2013-11-14 11:50     ` Vladimir 'φ-coder/phcoder' Serbinenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).