From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Vm2Dx-0001CA-PW for mharc-grub-devel@gnu.org; Thu, 28 Nov 2013 09:05:45 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm2Do-0000yc-FD for grub-devel@gnu.org; Thu, 28 Nov 2013 09:05:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vm2Dh-0007Je-4M for grub-devel@gnu.org; Thu, 28 Nov 2013 09:05:36 -0500 Received: from mail-ea0-x232.google.com ([2a00:1450:4013:c01::232]:62006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm2Dg-0007JX-Pn for grub-devel@gnu.org; Thu, 28 Nov 2013 09:05:29 -0500 Received: by mail-ea0-f178.google.com with SMTP id d10so5836930eaj.37 for ; Thu, 28 Nov 2013 06:05:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=img/20bZwt5BZufVn+Xi/9rlRT0ks5Yf/ddayUy7dAM=; b=axOYOGvoK380O2VJB2pl/5z1nbmOnvli6/2rod9syfn8Mo5alwlqjhDBFGynUw1NJZ DguDXtC0y2edp146V7YDTpKAl4zh37a48qOftTOLFs3WEiSM3+alu2HkwzvhQl6S8FuF vA1ohUPhP+ZDX21gwPeGBSdaHwz1oC8R/Wwu7KGjuISRIf9vL9wwTGQN/gXcFPmavwV1 L2+lcn2dD9BTqJ0tKuhoJGIwfa3o0yT/4YKPbBqQHWXWeD+hDvPfyZrYytSj3AjT19WI NwDmjQVgoIYlbEAt+brwcL+VUgZA23nsgbReRk2DZvwjkepzcbrC399LWc6eFg+45i6B Nf/g== X-Received: by 10.14.119.1 with SMTP id m1mr5691638eeh.39.1385647528010; Thu, 28 Nov 2013 06:05:28 -0800 (PST) Received: from [192.168.42.70] (48-228.197-178.cust.bluewin.ch. [178.197.228.48]) by mx.google.com with ESMTPSA id h3sm5161645eem.15.2013.11.28.06.05.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Nov 2013 06:05:26 -0800 (PST) Message-ID: <52974D98.3090608@gmail.com> Date: Thu, 28 Nov 2013 15:05:12 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: Fabio Fantoni Subject: Re: [Xen-devel] pvgrub2 is merged 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> <20131127213552.3120f5e5@opensuse.site> <52973FF8.7040502@m2r.biz> In-Reply-To: <52973FF8.7040502@m2r.biz> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2KJSCDHHSEQCOQSOFKTLN" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::232 Cc: Andrey Borzenkov , The development of GNU GRUB , "xen-devel@lists.xen.org" , M A Young 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: Thu, 28 Nov 2013 14:05:43 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2KJSCDHHSEQCOQSOFKTLN Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 28.11.2013 14:07, Fabio Fantoni wrote: > Il 27/11/2013 18:35, Andrey Borzenkov ha scritto: >> =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 sc= ritto: >>>> On 27.11.2013 16:59, Fabio Fantoni wrote: >>>>> Il 27/11/2013 12:50, Vladimir '=CF=86-coder/phcoder' Serbinenko ha = scritto: >>>>>> That pretty much explains what happened: you don't have any >>>>>> /boot/grub2/grub.cfg and when looking for /boot/grub/grub.cfg GRUB= >>>>>> found >>>>>> 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 (differen= t >>> from all other distributions) changing this command: >>> ./grub-mkstandalone --grub-mkimage=3D./grub-mkimage -o pvgrub2.xen -O= >>> 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 n= o >> 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. >=20 > Thanks for your reply. >=20 > I did this script that is working about finding and include the grub.cf= g > of pv domUs with many cases: >=20 > cat > boot/grub/grub.cfg < insmod lvm > insmod ext2 > insmod part_msdos > insmod part_gpt > insmod btrfs >=20 > insmod regexp > for dev in (*); do > # $device: parenthesis removed from $dev > regexp -s device '\((.*)\)' $dev > set root=3D$device > for file in /boot/vmlinuz-* /boot/linux-*; do > if test -f $file; then > set saved_root=3D$root > fi > done > done > set root=3D$saved_root >=20 > if test -f /boot/grub2/grub.cfg ; then > configfile /boot/grub2/grub.cfg > elif test -f /boot/grub/grub.cfg ; then > configfile /boot/grub/grub.cfg > fi > EOF >=20 > @xen developer: Are there other modules to insert for other partitions > or file systems, other grub cfg path for other distributions or other > kernel type to search that support xen pv domUs? > I think is good do and post complete pvgrub2 cfg that support all pv do= mUs. >=20 > @xen and grub developer: I'm still unable to boot any entry of Sid pv > domU using official kernel: > xl -vvv create -c /etc/xen/sid.cfg > ... > Caricamento Linux 3.11-1-amd64... > Caricamento ramdisk iniziale... > xc: debug: hypercall buffer: total allocations:247 total releases:247 > xc: debug: hypercall buffer: current allocations:0 maximum allocations:= 4 > xc: debug: hypercall buffer: cache current size:4 > xc: debug: hypercall buffer: cache hits:236 misses:4 toobig:7 >=20 > Any ideas? >=20 Ah I forgot: you need to "insmod xzio" since debian ones are compressed. > If you need more tests/informations tell me and I'll post them. >=20 > Thanks for any reply. >=20 ------enig2KJSCDHHSEQCOQSOFKTLN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlKXTaIACgkQmBXlbbo5nOtJTQD+MOOIekcCRwxGuE5s+0wGPI08 4F0RsRDW6Js2U9tHGEsA/0qMHdJ0F6WbHmOJ7DseVKpne+A7nG49F0WzecYYT1A9 =8xYA -----END PGP SIGNATURE----- ------enig2KJSCDHHSEQCOQSOFKTLN--