From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VgvS7-0005xH-6m for mharc-grub-devel@gnu.org; Thu, 14 Nov 2013 06:51:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgvS1-0005xB-7T for grub-devel@gnu.org; Thu, 14 Nov 2013 06:51:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VgvRw-0002Cc-JJ for grub-devel@gnu.org; Thu, 14 Nov 2013 06:51:09 -0500 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:39140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgvRw-0002CW-CL for grub-devel@gnu.org; Thu, 14 Nov 2013 06:51:04 -0500 Received: by mail-wg0-f46.google.com with SMTP id x12so1754741wgg.13 for ; Thu, 14 Nov 2013 03:51:03 -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=UBEfzwSxmKKXWNriJ8MOe14B0PSDa0MWnxw5/hXXAIU=; b=syuNrEqJgtM5BIVWl5EjgVyhLhh1SrA9iYKaB+KrXpBqnx9OzFy10pjOYUy5GBGBr2 eBA2AtNJkAWulOUD3+eouP+u+6evk4f2uWsBAKTYe/B9Go+xHnppRLP2hFxcGKRkCdCR SrQavbV3Q+mYNt/jBO9x6z/Zy2K9953s87cZuH2EWg6ZKEAbjv0hXAApk1UnQDGMkXU9 hhGwK1QVjd0mJfSStxipmCYaUsgFuuhegOJorgQMcH6ulcMFSwumGWeVw3453Q1nMRQ8 IeKH3o7SbeKawCTlGWrPbU+7Y7MGvVjoYFRf81kpy4AU/0zyrzBiw8BahYgmdyeU4g/C OCdQ== X-Received: by 10.180.84.101 with SMTP id x5mr2084748wiy.58.1384429863429; Thu, 14 Nov 2013 03:51:03 -0800 (PST) Received: from [10.2.56.203] (public-docking-pat-hg-mapped-0040.ethz.ch. [195.176.110.105]) by mx.google.com with ESMTPSA id g8sm197029eep.20.2013.11.14.03.51.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Nov 2013 03:51:02 -0800 (PST) Message-ID: <5284B91D.8080201@gmail.com> Date: Thu, 14 Nov 2013 12:50:53 +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: Konrad Rzeszutek Wilk Subject: Re: [PATCH] remove dependency on /boot/config-* in grub.d/20_linux_xen References: <20130715180006.GA2433@phenom.dumpdata.com> <527FEF3D.1050906@gmail.com> <20131113135650.GA2647@phenom.dumpdata.com> In-Reply-To: <20131113135650.GA2647@phenom.dumpdata.com> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2HLRQGOCNKXJFHISAKCVN" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22e Cc: The development of GNU GRUB , xen-devel@lists.xensource.com 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, 14 Nov 2013 11:51:14 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2HLRQGOCNKXJFHISAKCVN Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 13.11.2013 14:56, Konrad Rzeszutek Wilk wrote: > On Sun, Nov 10, 2013 at 09:40:29PM +0100, Vladimir '=CF=86-coder/phcode= r' Serbinenko wrote: >> On 15.07.2013 20:00, Konrad Rzeszutek Wilk wrote: >>> 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). >>> >> Please try my grub_file branch: >> http://git.savannah.gnu.org/cgit/grub.git/log/?h=3Dphcoder/grub_file >> It should do what you want. >> >=20 > Oddly I get this after I installed it. >=20 > /sbin/grub-probe: error: failed to get canonical path of `'. >=20 > And I kind of fixed it by removing the 'set -e' at the start > of the file. >=20 > After that, and with me removing the /boot/config-3.12.0 file > it generates an proper entry in grub.cfg for the Xen payload! > Yeey! >=20 > The other thing I saw was that the 'root' option for Linux > ended up being 'root=3D' instead of the 'root=3DUUID=3Dblabla'. >=20 I've applied a small fix. It should fix both problems you report. Could you retest? > See here: >=20 > if [ x"$grub_platform" !=3D xxen \( x"$grub_cpu" =3D xi386 -o x"$grub_= cpu" =3D xx86_64 -o x"$grub_platform" =3D x \) ]; then > menuentry 'Fedora GNU/Linux, with Xen hypervisor' --class fedora --clas= s gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-= gnulinux-simple-' { > insmod part_msdos=20 > insmod ext2 > set root=3D'hd0,msdos1' > if [ x$feature_platform_search_hint =3D xy ]; then > search --no-floppy --fs-uuid --set=3Droot --hint-bios=3Dhd0,msdos1 -= -hint-efi=3Dhd0,msdos1 --hint-baremetal=3Dahci0,msdos1 760e0266-1a60-462= 1-b332-0788cf687e33 > else > search --no-floppy --fs-uuid --set=3Droot 760e0266-1a60-4621-b332-07= 88cf687e33 > fi > echo 'Loading Xen xen ...' > if [ "$grub_platform" =3D "pc" -o "$grub_platform" =3D "" ]; th= en > xen_rm_opts=3D > else > xen_rm_opts=3D"no-real-mode edd=3Doff" > fi > multiboot /xen.gz placeholder guest_loglvl=3Dall com1=3D115200,8n1 con= sole=3Dcom1,vga loglvl=3Dall iommu=3Dno-amd-iommu-perdev-intremap,verbose= ,debug,no-intremap ${xen_rm_opts} > echo 'Loading Linux 3.12.0 ...' > module /vmlinuz-3.12.0 placeholder root=3D ro rd.md=3D0 rd.lvm=3D0 rd.= dm=3D0 rd.luks=3D0 loglevel=3D8 radeon.modeset=3D0 xen-pciback.hide=3D(0= 5:00.*) console=3Dhvc0=20 > echo 'Loading initial ramdisk ...' > module /initramfs-3.12.0.img > } >=20 ------enig2HLRQGOCNKXJFHISAKCVN 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/ iF4EAREKAAYFAlKEuSUACgkQmBXlbbo5nOvCqQD+LDPFNUwy+hr+RBAxExmuDs0U FUV7AA0DtPdQdOsDy1wA/RC99ju49Ydk7J3pNR7vTwVGnby8lEsw1pZD7M1lWh+6 =q8uc -----END PGP SIGNATURE----- ------enig2HLRQGOCNKXJFHISAKCVN--