From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1O3Set-00045V-7r for mharc-grub-devel@gnu.org; Sun, 18 Apr 2010 07:27:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3Ser-00044K-3S for grub-devel@gnu.org; Sun, 18 Apr 2010 07:27:25 -0400 Received: from [140.186.70.92] (port=33618 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3Sep-00043P-ME for grub-devel@gnu.org; Sun, 18 Apr 2010 07:27:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3Sen-0004J4-5z for grub-devel@gnu.org; Sun, 18 Apr 2010 07:27:23 -0400 Received: from mail.gmx.net ([213.165.64.20]:39243) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O3Sem-0004IO-RT for grub-devel@gnu.org; Sun, 18 Apr 2010 07:27:21 -0400 Received: (qmail invoked by alias); 18 Apr 2010 11:27:18 -0000 Received: from 165.126.46.212.adsl.ncore.de (HELO 192.168.2.69) [212.46.126.165] by mail.gmx.net (mp024) with SMTP; 18 Apr 2010 13:27:18 +0200 X-Authenticated: #2145628 X-Provags-ID: V01U2FsdGVkX195VA047ZV5yImLlM68XvVfbajmgjYhRBP62/fwMx VHiUN3w6sl/nwd Date: Sun, 18 Apr 2010 13:26:35 +0200 From: "Thomas Schmitt" To: grub-devel@gnu.org References: <4BCA1A75.4010702@gmail.com> In-Reply-To: <4BCA1A75.4010702@gmail.com> Message-Id: <106429013518011@192.168.2.69> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53000000000000003 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Subject: Re: How to prepare an ISO 9660 CD for booting via GRUB ? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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, 18 Apr 2010 11:27:25 -0000 Hi, > Ok, legacy :(. But --efi-boot would have no legacy. --efi-boot will be all at your service. :)) The more definite your wishes, the more swift their implementation. Maybe we should call it --efi-grub-boot just to make clear whom it cares for ? Shall the --efi* option have any influence on the BIOS boot stuff except the boot catalog ? (Default Entry, BIOS boot image, ...) > http://bzr.savannah.gnu.org/r/grub/people/phcoder/rescue-efi/ My bzr is too old for that. :( It is from 2009. Hrmpf. Is there a web interface to browse the source for a first glimpse ? > BIOS+EFI one should look like ... Ok. I will start this in a few days. Keep your test environment ready. :)) ------------------------------------------------ xorriso-0.5.3 timestamp 2010.04.18.100814 allows to set LBA sorting weights. Within the mkisofs emulation it is: --sort-weight number ISO-path If ISO-path is a directory, then its whole tree is affected. --sort-weight can get overridden by further --sort-weight options. They get applied after all files are added to the image. The boot catalog already has a hardcoded weight of 1000 in libisofs. It cannot be influenced by --sort-weight because it gets created after the image manipulations are done. The boot catalog of grub-mkrescue has no ISO-path anyway (no option -c). So in grub-mkrescue , this would give all files weight 0, then override the /boot/grub tree by 1, and the -b file by 2: --sort-weight 0 / \ --sort-weight 1 /boot/grub \ --sort-weight 2 /boot/grub/i386-pc/eltorito.img \ After the image is written, xorriso can display the data LBAs of regular files: xorriso \ -indev image.iso \ -find / -sort_lba -exec report_lba -- \ 2>/dev/null | less yields: Report layout: xt , Startlba , Blocks , Filesize , ISO image path File data lba: 0 , 38 , 12 , 24317 , '/boot/grub/i386-pc/eltorito.img' File data lba: 0 , 50 , 6 , 10564 , '/boot/grub/i386-pc/acpi.mod' ... For the boot catalog LBA, one has to peek binary (even if there was a ISO-path leading to it). This reads the LBA word from El Torito record: dd if=image.iso bs=1 skip=34887 count=4 \ 2>/dev/null | od -x yields LBA 37 (decimal) 0000000 0025 0000 (There is a mkisofs option -sort with a file as argument where single files get a weight. Wildcards are promised in mkisofs/README.sort. For now i deem that rather unappealing.) ------------------------------------------------ I will now finish multi-session MBR handling and release libisoburn-0.5.4. Then begins the next development cycle with EFI, adjustable boot catalog weight, ... Have a nice day :) Thomas