From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OEORL-0000UL-6i for mharc-grub-devel@gnu.org; Tue, 18 May 2010 11:10:39 -0400 Received: from [140.186.70.92] (port=47040 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEORH-0000U6-6Q for grub-devel@gnu.org; Tue, 18 May 2010 11:10:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEORF-0008Gc-C3 for grub-devel@gnu.org; Tue, 18 May 2010 11:10:35 -0400 Received: from mail.gmx.net ([213.165.64.20]:57729) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OEIVj-0004Bq-5g for grub-devel@gnu.org; Tue, 18 May 2010 04:50:55 -0400 Received: (qmail invoked by alias); 18 May 2010 08:50:32 -0000 Received: from 165.126.46.212.adsl.ncore.de (HELO 192.168.2.69) [212.46.126.165] by mail.gmx.net (mp008) with SMTP; 18 May 2010 10:50:32 +0200 X-Authenticated: #2145628 X-Provags-ID: V01U2FsdGVkX18g6Ycxl8QgvWmaniAGnTf6PfR+QjhmuPm7o3WShm WQ+JJGULWfvQ1H Date: Tue, 18 May 2010 10:49:56 +0200 From: "Thomas Schmitt" To: grub-devel@gnu.org References: <4BF1B631.1030207@gmail.com> In-Reply-To: <4BF1B631.1030207@gmail.com> Message-Id: <106269888817561@192.168.2.69> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Subject: Re: Migrations to xorriso 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: Tue, 18 May 2010 15:10:37 -0000 Hi, while my local bzr upgrade problems still persist i can view grub-mkrescue.in at https://code.launchpad.net/~vcs-imports/grub/grub2-bzr > xorriso -pathspecs on -as mkisofs I would make this xorriso -report_about HINT -as mkisofs -graft-points Option -report_about HINT will reduce verbosity to the level of messages about unusual events and remedy proposals. Since xorriso is run in mkisofs emulation, it seems clearer to use -graft-points rather than xorriso option -pathspecs. > -as mkisofs ${grub_mkisofs_arguments} --protective-msdos-label > -o ${output_image} -r ${iso9660_dir} ${source} The potential content of ${grub_mkisofs_arguments} looks good so far. I assume you have already tested your use cases. There remain opportunities for result size reduction: The result will be up to 426 kB larger than the one of grub-mkisofs. (Modern mkisofs or genisoimage would give you 300 kB extra.) ------------------------------------------------ You may add mkisofs option -no-pad to avoid trailing padding of 300 kB which is only needed if you later burn the image to a CD in write mode TAO. Alternatively you could allow option -no-pad in the option interpreter of grub-mkrescue rather than issueing: -*) echo "Unrecognized option \`$option'" 1>&2 The burn program can eventually add padding. xorriso -as cdrecord will by default use write mode SAO if the file size is detectable. ------------------------------------------------ Another 64 to 126 kB can be saved by hiding the fact that the target is a random access file. One would replace -o ${output_image} by | cat >${output_image} This deprives the result of the capability to show on overwriteable media a table-of-content with older sessions. ------------------------------------------------ In my tests the size reduced result was 4 kB smaller than the result from grub-mkisofs. Have a nice day :) Thomas