From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YReGv-00006L-Kp for mharc-grub-devel@gnu.org; Sat, 28 Feb 2015 05:05:21 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YReGs-0008Vi-FJ for grub-devel@gnu.org; Sat, 28 Feb 2015 05:05:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YReGn-00075J-GU for grub-devel@gnu.org; Sat, 28 Feb 2015 05:05:18 -0500 Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:39675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YReGn-00075A-9m for grub-devel@gnu.org; Sat, 28 Feb 2015 05:05:13 -0500 Received: by labgq15 with SMTP id gq15so22001062lab.6 for ; Sat, 28 Feb 2015 02:05:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; bh=i3dilv7vXfqj5uClub8KSVHJOPkgh2hWbhiqvw6Hako=; b=kQCIHq/O7I8jq4hJVp4b0mLF/O86DBcYWNww3z3Ze9gmyN4Jhk4tC3rCkauN/53rJe ZN3cXK8di+nMljSPYTo6JJxA7CYiDbsi3J45cnhlfY6BHcXxsrLQ9tNduOT2x/TsXTVd /kiFmGBlrSfLbbxef/IwalEmjBD3G6xqbZ1jcu5dq3S6cQXhTLAEb9MfCYl4MqGFX0Ua Wmq3b7aMikw6uiboBgsnJ2nMw3b6b5LXCPFpSDGmMJG4aO/SbR3BDN6ykanobnl2etlV djq/xKbo0JLLj5GwzED+7ELnu4bETiGXuFeGI224ntM59coEEjjizdzrdGg3we0RRbsG Szag== X-Received: by 10.112.198.1 with SMTP id iy1mr16505619lbc.13.1425117912531; Sat, 28 Feb 2015 02:05:12 -0800 (PST) Received: from opensuse.site (ppp91-76-14-38.pppoe.mtu-net.ru. [91.76.14.38]) by mx.google.com with ESMTPSA id xs7sm1375120lbb.22.2015.02.28.02.05.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Feb 2015 02:05:11 -0800 (PST) Date: Sat, 28 Feb 2015 13:05:09 +0300 From: Andrei Borzenkov To: grub-devel@gnu.org Subject: grub-mkrescue --install-modules for multi-platform support Message-ID: <20150228130509.11ea4302@opensuse.site> X-Mailer: Claws Mail 3.11.0 (GTK+ 2.24.25; 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:c03::22d 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: Sat, 28 Feb 2015 10:05:19 -0000 It was pointed out that this option does not play well. Different platforms may need different modules that do not exist for other platforms; if we give it total list, it will error out because some modules are missing. bor@opensuse:~/build/grub> grub2-mkrescue -o /tmp/foo.iso --install-module= s=3D"efi_gop" --locales=3D --themes=3D --fonts=3D grub2-mkrescue: =D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0: =D0=BD=D0=B5 =D1=83= =D0=B4=D0=B0=D0=BB=D0=BE=D1=81=D1=8C =D0=BE=D1=82=D0=BA=D1=80=D1=8B=D1=82= =D1=8C =C2=AB/usr/lib/grub2/i386-pc/efi_gop.mod=C2=BB: =D0=9D=D0=B5=D1=82 = =D1=82=D0=B0=D0=BA=D0=BE=D0=B3=D0=BE =D1=84=D0=B0=D0=B9=D0=BB=D0=B0 =D0=B8= =D0=BB=D0=B8 =D0=BA=D0=B0=D1=82=D0=B0=D0=BB=D0=BE=D0=B3=D0=B0. May be extending it with something like grub-mkrescue --install-modules=3D..." --platform=3D*-efi --install-modules=3D"..." --platform=3Di386-pc --install-modules=3D"..." This would allow also to make other options per-platform. I understand that workaround is to manually put them where appropriate but - it does not interoperate with compression - it does not resolve dependencies - it makes tools unaware which modules are