From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1p7vcy-00063p-6g for mharc-grub-devel@gnu.org; Wed, 21 Dec 2022 04:43:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7vcw-00063c-Jo for grub-devel@gnu.org; Wed, 21 Dec 2022 04:43:06 -0500 Received: from mout.gmx.net ([212.227.17.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7vcu-0000Nq-PO for grub-devel@gnu.org; Wed, 21 Dec 2022 04:43:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1671615779; bh=jxN2kAllg71UUjoMt8FqnxCGjx2BbFjf9w+tqcTP+ck=; h=X-UI-Sender-Class:Date:From:To:Subject:Cc:References:In-Reply-To; b=UKb1kieRqzb+3dpc8r0t7SvWbqGQ4AYdb8+ciKbDOF0bF+yhO1djuELFQ+q4r4ELt e90zbtqfTxdCBBlslLFiYCpIRRsjESpgA76QR/GEC9N46VME5HFE06Vd/FSuT5rGA8 IFZ0UcXtAzZhEpRCIMJY/CuNyLMQcHGHLRoEPGtLtyPRR/ABoyZVPWXlMpCeXafLXS KZm4ZEapco2av9+YCo8/feg/uuqgs5//ue5lPFO0DBXn3uuAVgdnPLfX99ZivmqLwy GIZt5REkl32/w9/OCpHSAHWSStzSsamwzMcVWfA7mLAiVtRivyrzppTEf6VrELcg3+ U56vpeQLHvQfg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from scdbackup.webframe.org ([84.179.236.73]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MIwz4-1pR7TF0SFu-00KNrY; Wed, 21 Dec 2022 10:42:59 +0100 Date: Wed, 21 Dec 2022 10:43:56 +0100 From: "Thomas Schmitt" To: grub-devel@gnu.org Subject: Re: [RFC PATCH] kern/dl: Add module version check Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: pete@akeo.ie, zhangboyang.id@gmail.com, rharwood@redhat.com, development@efficientek.com, dkiper@net-space.pl References: <8490b57e-87e6-58ce-4d7a-c99ebf899b84@gmail.com> In-Reply-To: <8490b57e-87e6-58ce-4d7a-c99ebf899b84@gmail.com> Message-Id: <15103386399840557260@scdbackup.webframe.org> X-Provags-ID: V03:K1:H9dikijmw7dGasLbDg+V2xl9pmlVS6GIFZD35WQtJImagkW1iOd TfUpxgyS1oj3V6ryMRp59WOpjVVTM0wCGflazeUkTPfkgViehvJCDRc7WIRRjGng6NCLHcb ZqkXCvSMclAz0sbmJzUzFjqmSiADJjwl0wlzQAX8TOY3bPXDCGXmJjDANnh3TnSvri+UCT3 bLWEmHib3gC3nQkSkxOhQ== UI-OutboundReport: notjunk:1;M01:P0:6aev4pY9l3k=;+Di01+5g9wQtknTyxwZnLSwArJE K4lYc1RXiJlngiH2D3aYhNuu4RbTDWwy44vUm90x9v+MWXra9QMBVfSaCw+hrZydZcMjSbGew z+j5EnexZntw8euLK83o+/xkDgS68HUXL5qLVyP9OyXBj01SGa3EGHd4R8rwaQ80jgDCPnlFp 3Q3SpcKFnR0t3LwaY4QHFS30BpJzHC/cGkNYxOjN+dDvX5nsYtYhq1fn4XkjW9RvS4fnwdCeh ezY504t9S6lP7ejuK4YCEstHwQ3LXGkoAwzUdEFJTuy3sJz+x7au7p4EGGoDKVMOubsoVBxdB OPfTsMDUq3CXiERuGMHJeXPSjs0F2nZI73g0pdyJ++7fNo8718NnxCB1aa7bGnFyanl/iIYMv +dDPgvcfpZAc39/JywCsPwXzdJMZyaLNkJv/0+tjZY5fzREixrmnOnDF5/ouiilUGHR93z2Qn 0Mak/CCP6kzBx1hMLPjkrpu/Sa87FQEwKETZ6qW1E69A7VRbBoqJ/+Zzthcbbyi1yBEsvvT3u uoEgy6+vTHffXNLOkTJ27zHg7dsuaRC28vIkpp9E+pmmt+sMKvVEfx1ZrAYfrH7kBhcHHd8A7 VupHhThPxpQIvDSm8UJYzsCY4iWcszDe7FUNY8c6AJixsVggPl6tafDfWaHWTNfXGH70hYjMk ajeubPVMQ/1fBCHNlESGXRDuD1GQyCXFS1lGpoNbw4KPgdytOH2IR7j8BBb6GcpuMh4njUrvW 7ALq+PYyFIr693MZj7zQIevEOQ4d3wtnN5gphq3YePBG1WiEcKBb0KWTFyRURUsoAYa+OWmt1 9T23USUcjIpgKmuVjr6EZ/CmX+K9bbGUFsmGVidw711mzsWcxvcAwEL31G2GtVmYrhKM32fnO q0ry3AF9vlX6KkT0S/WvuTsmWaZcjAK2yJxJoU65MkeVjuHXIwQYwy2WL/mY8JrPcoRv5epld EvpCVg== Received-SPF: pass client-ip=212.227.17.21; envelope-from=scdbackup@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2022 09:43:06 -0000 Hi, Pete Batard wrote: > > unlike what is the case for UEFI, one can not expect > > to be able to pick all the GRUB core files needed to convert a GRUB > > based ISO bootable media to a GRUB based USB bootable media [...] > > Typically, one of the > > missing files will be a 'core.img' that can work for USB BIOS boot of = a > > MBR partitioned FAT or NTFS media, and that even a GRUB based ISOHybri= d > > image will not readily provide. Zhang Boyang wrote: > The situation is, for BIOS boot, there is no grub core file in ISO > because it's written to sectors instead of files? Did I understand > correctly? I think it is rather about the fact that GRUB equipped hybrid ISOs boot on legacy BIOS from USB stick via the MBR code (~440 byte) to the El Torito boot image, which is in charge for booting from optical media. In grub-mkrescue ISOs it is called /boot/grub/i386-pc/eltorito.img The MBR code is taken by grub-mkrescue.c from the file "boot_hybrid.img" in source_dirs[GRUB_INSTALL_PLATFORM_I386_PC]. So no core.img is needed and the filesystem module set can be sparse, because the filesystem type is known from which GRUB will read its further software. Pete Batard wrote: > > Rufus usually recommends to write such images in what it calls > > "ISO mode" (shorthand for "ISO extraction mode") with the ISO content > > extracted to a FAT or NTFS file system and with a GRUB core.img > > bootloader Maybe one should not only put a copy of the EFI boot image's /EFI/BOOT tree into grub-mkrescue ISOs but also an outdoor pack with the GRUB equipment that is needed to make bootable a USB stick with FAT or NTFS. (The filesystem modules are included in Pete Batard's proposal for the /EFI/BOOT tree. But the disk MBR image and core.img are not.) Zhang Boyang wrote: > test whether that commit (052e6068be62) breaks Rufus > (e.g. Rufus with latest git GRUB, to boot Debian ISO). Debian ISOs still boot on legacy BIOS via ISOLINUX. Archlinux, Ubuntu, Fedora, and others meanwhile use GRUB in their ISOs for both, legacy BIOS and EFI. I think that in any case an ISO made by grub-mkrescue should be tested. Maybe a distro developer is here who uses it for making a full fledged installation ISO or a live ISO. Have a nice day :) Thomas