From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Vlj22-0008Ew-O1 for mharc-grub-devel@gnu.org; Wed, 27 Nov 2013 12:36:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vlj1v-00087D-LA for grub-devel@gnu.org; Wed, 27 Nov 2013 12:36:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vlj1o-0001BD-FR for grub-devel@gnu.org; Wed, 27 Nov 2013 12:36:03 -0500 Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]:61818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vlj1o-0001Au-8P for grub-devel@gnu.org; Wed, 27 Nov 2013 12:35:56 -0500 Received: by mail-lb0-f180.google.com with SMTP id w6so5420111lbh.25 for ; Wed, 27 Nov 2013 09:35:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=n9hrwjzXsakgxFEGsDCDJIp3HGGS1RdyHxx+JUu+DV4=; b=ozArO+eBaxiJ8f3B3ucMHkZwMJUh1d+IunHXKFpsrLDPsIgviq/bJOPyR5a8dGphyL +OwHbkmfpjHG8s1/ne8pL8a4AAh9oNgZEdn65QvQcYrSl5bjX1UZ7FxaphQp+8zSp/fx Nw03VNLhLCIY0X3GUdneJn2/MH7nO8SQNRltlJ6wWaW/YDV66nAOaNq6DpiazbKN292t vCzYgkI5YB4Eg5uEEXRJxcCx/MsYOzLn88UYfpVeRa+5fwt+PU8Dot3Lg+ezwZJd8Znj CX2WYTEDpUK2ztyzmq6c3CI7+7PnIO2fjYHaDXonyJjwtKCtMOXVDP9YLauSyNEUzLX7 V9zw== X-Received: by 10.152.88.67 with SMTP id be3mr35291lab.67.1385573754669; Wed, 27 Nov 2013 09:35:54 -0800 (PST) Received: from opensuse.site (ppp91-76-170-113.pppoe.mtu-net.ru. [91.76.170.113]) by mx.google.com with ESMTPSA id c10sm43318596lbd.9.2013.11.27.09.35.53 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 27 Nov 2013 09:35:53 -0800 (PST) Date: Wed, 27 Nov 2013 21:35:52 +0400 From: Andrey Borzenkov To: Fabio Fantoni Subject: Re: [Xen-devel] pvgrub2 is merged Message-ID: <20131127213552.3120f5e5@opensuse.site> In-Reply-To: <52961CD5.1040009@m2r.biz> References: <527EA084.6000706@gmail.com> <20131110084753.540b0107@opensuse.site> <5283DD8F.5080103@gmail.com> <52850918.1040406@gmail.com> <52851D28.1090905@gmail.com> <52851D77.6060203@gmail.com> <5285440B.2040301@gmail.com> <5293733B.3090604@m2r.biz> <5294E157.90708@m2r.biz> <20131126221221.3fe316e3@opensuse.site> <5295D867.9050306@m2r.biz> <5295DCA0.2010805@gmail.com> <529616EA.4000504@m2r.biz> <529617B7.2020507@gmail.com> <52961CD5.1040009@m2r.biz> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.18; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::234 Cc: Vladimir =?UTF-8?B?J8+GLWNvZGVyL3BoY29kZXIn?= Serbinenko , M A Young , "xen-devel@lists.xen.org" , The development of GNU GRUB X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2013 17:36:09 -0000 =D0=92 Wed, 27 Nov 2013 17:24:53 +0100 Fabio Fantoni =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Il 27/11/2013 17:03, Vladimir '=CF=86-coder/phcoder' Serbinenko ha scritt= o: > > On 27.11.2013 16:59, Fabio Fantoni wrote: > >> Il 27/11/2013 12:50, Vladimir '=CF=86-coder/phcoder' Serbinenko ha scr= itto: > >>> That pretty much explains what happened: you don't have any > >>> /boot/grub2/grub.cfg and when looking for /boot/grub/grub.cfg GRUB fo= und > >>> its own memdisk and fell into recursion. I'm not sure what should be = the > >>> proper way to solve this recursion. Yes, it was a bit naive on my side. Recursion in principle can be stopped by using global variable, but search is limited to the first match only anyway, so I guess it is not worth it. > >> > >> Anyone know how to exclude memdisk from the search please? > Please look in grub2 sources at docs/osdetect.cfg. It implements advanced run-time detection of possible bootable files from various operating systems. It boils down to loop across all devices, and of course you can either limit device names (like looking for hd* only) or explicitly exclude known ones (like memdisk). > Is it possible to specify a different default grub.cfg path (different=20 > from all other distributions) changing this command: > ./grub-mkstandalone --grub-mkimage=3D./grub-mkimage -o pvgrub2.xen -O=20 > x86_64-xen -d grub-core/ boot/grub/grub.cfg > Is it hardcoded as /boot/grub/grub.cfg for grub memdisk or can be set? > Not really. Currently the situation is - grub-mkstandalone hardcodes $prefix as (memdisk)/boot/grub - after launch grub unconditionally starts "normal" module if at all possible - normal module always tries to load and execute $prefix/grub.cfg if no explicit configuration file name is given as argument But I think that using osdetect.cfg or something based on this idea won't require changing defaults at all.