From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= Subject: Re: pvgrub2 is merged Date: Thu, 28 Nov 2013 15:05:12 +0100 Message-ID: <52974D98.3090608__32825.6018263803$1385647639$gmane$org@gmail.com> 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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8008051923135529090==" Return-path: In-Reply-To: <52973FF8.7040502@m2r.biz> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Fabio Fantoni Cc: Andrey Borzenkov , The development of GNU GRUB , "xen-devel@lists.xen.org" , M A Young List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============8008051923135529090== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2KJSCDHHSEQCOQSOFKTLN" 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-- --===============8008051923135529090== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============8008051923135529090==--