From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Xxjm7-0003K4-EG for mharc-grub-devel@gnu.org; Sun, 07 Dec 2014 16:53:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxjm4-0003GY-BA for grub-devel@gnu.org; Sun, 07 Dec 2014 16:53:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xxjm3-0001ES-3L for grub-devel@gnu.org; Sun, 07 Dec 2014 16:53:52 -0500 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:37652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxjm2-0001EB-Ry for grub-devel@gnu.org; Sun, 07 Dec 2014 16:53:51 -0500 Received: by mail-wi0-f171.google.com with SMTP id bs8so3138859wib.10 for ; Sun, 07 Dec 2014 13:53:50 -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:subject:references :in-reply-to:content-type; bh=N/UO/gTVrcy7mA5uVYAIBUQOC0nigcBbf+bpo1GS8CA=; b=tH3vrTHyb5BxDpq5vABCp+U7lImNB4XObrJUacM84qjCcQaeRFJ63iqSDt3TCF59b0 lsiW0Rpg1zuP0L2OXFlfrMVr4eLexhI3w1W7+aT5pO7uvsWdqYRfTs5E6YK8CE0TQ/nN jrVBgnZ5QsUZdc9S79im08D2F4Ce9nCyg4FXFwiGNHW6fgEZqEP1mAxu6WrJ/Hn2qPo0 vbzg5nNAcifv5Biq9yJ5/iPCS6gEnpfk9qkR+kYlznDAbZeWIkB4GnWyXaAxx5mOz6t5 TZobGi3cZQFv2fqPikBHq9TvAfCObZYf/yTvmBz0ApUD1MnprU83eVbUC05kFXzShMfH svmQ== X-Received: by 10.195.11.6 with SMTP id ee6mr40923228wjd.95.1417989230184; Sun, 07 Dec 2014 13:53:50 -0800 (PST) Received: from ?IPv6:2a02:1205:501d:9210:863a:4bff:fe50:abc4? ([2a02:1205:501d:9210:863a:4bff:fe50:abc4]) by mx.google.com with ESMTPSA id p14sm7355340wie.1.2014.12.07.13.53.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Dec 2014 13:53:49 -0800 (PST) Message-ID: <5484CC6C.2000101@gmail.com> Date: Sun, 07 Dec 2014 22:53:48 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: [PATCH] grub-install: Include all decompressor modules in pvxen core image. References: <1417163614-22703-1-git-send-email-ijc@hellion.org.uk> <20141128200952.31d2c6be@opensuse.site> <1417195555.23604.69.camel@hellion.org.uk> <20141130143101.0bb4298e@opensuse.site> <1417348279.2372.20.camel@hellion.org.uk> <1417354463.2372.27.camel@hellion.org.uk> <54848BF7.5030907@gmail.com> <20141207202608.0add92f0@opensuse.site> In-Reply-To: <20141207202608.0add92f0@opensuse.site> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="umtKfsp7B8HpDSsGVjX6bXHU1KpIPiPC5" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22b 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: Sun, 07 Dec 2014 21:53:53 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --umtKfsp7B8HpDSsGVjX6bXHU1KpIPiPC5 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 07.12.2014 18:26, Andrei Borzenkov wrote: > =D0=92 Sun, 07 Dec 2014 18:18:47 +0100 > Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF=D0= =B8=D1=88=D0=B5=D1=82: >=20 >> On 30.11.2014 14:34, Ian Campbell wrote: >>> On Sun, 2014-11-30 at 11:51 +0000, Ian Campbell wrote: >>>> On Sun, 2014-11-30 at 14:31 +0300, Andrei Borzenkov wrote: >>>>> if [ x$grub_platform =3D xxen ]; then >>>>> insmod xzio >>>>> fi >>>> >>>> I think that could work. >>> >>> Indeed it does, so how about this instead of the patch at the start o= f >>> the thread? >>> >> This should probably have been autoloaded. >=20 > File filters are not autoloaded and I do not see how it can really be > done. OTOH unconditionally loading them may have unwanted side effect > where we assumed files were not decompressed. >=20 In this particular case we could autoload based on signature to module ma= p. Probably it's a fair game since compressor can be uniquely determined from magic. Autoload could be restricted to xen linux loader. > In this specific case extending grub-file to detect compression type > used by kernel is probably OK. >=20 >> Can you send me privately a= >> kernel you use, so I can reproduce your tests? >>> >From f4199776eca80dfad4e9378a01ddb5866face3d7 Mon Sep 17 00:00:00 20= 01 >>> From: Ian Campbell >>> Date: Sun, 30 Nov 2014 12:12:52 +0000 >>> Subject: [PATCH] Arrange to insmod xzio when booting a kernel as a Xe= n guest >>> >>> This is needed in case the Linux kernel is compiled with CONFIG_KERNE= L_XZ >>> rather than CONFIG_KERNEL_GZ (gzio is already loaded by grub.cfg). >>> >>> Signed-off-by: Ian Campbell >>> >>> Patch-Name: insmod-xzio-on-xen.patch >>> --- >>> util/grub.d/10_linux.in | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in >>> index 79fa03a..86e35f2 100644 >>> --- a/util/grub.d/10_linux.in >>> +++ b/util/grub.d/10_linux.in >>> @@ -150,6 +150,7 @@ linux_entry () >>> fi >>> =20 >>> echo " insmod gzio" | sed "s/^/$submenu_indentation/" >>> + echo " if [ x\$grub_platform =3D xxen ]; then insmod xzio; insmod = lzopio; fi" | sed "s/^/$submenu_indentation/" >>> =20 >>> if [ x$dirname =3D x/ ]; then >>> if [ -z "${prepare_root_cache}" ]; then >>> >> >> >=20 >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 --umtKfsp7B8HpDSsGVjX6bXHU1KpIPiPC5 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 iF4EAREKAAYFAlSEzGwACgkQmBXlbbo5nOsxnwD/QPbtsnKgqfA5h7+K9TLmUeOx EajKbtlNzWBcJkMWJFMBAI8S2dISIVkRIvUmxsj2oFJTovCH/gmqp4nLwdS/Mgcl =m8Kj -----END PGP SIGNATURE----- --umtKfsp7B8HpDSsGVjX6bXHU1KpIPiPC5--