From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Yhjl7-00040w-Qy for mharc-grub-devel@gnu.org; Mon, 13 Apr 2015 15:11:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhjl5-0003x9-6I for grub-devel@gnu.org; Mon, 13 Apr 2015 15:11:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yhjl2-0004SM-80 for grub-devel@gnu.org; Mon, 13 Apr 2015 15:10:59 -0400 Received: from mout.gmx.net ([212.227.17.20]:58487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhjl1-0004Rp-UG for grub-devel@gnu.org; Mon, 13 Apr 2015 15:10:56 -0400 Received: from scdbackup.webframe.org ([79.192.89.235]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Luajs-1ZPyTV38K0-00zjcD; Mon, 13 Apr 2015 21:10:54 +0200 Date: Mon, 13 Apr 2015 21:10:29 +0200 From: "Thomas Schmitt" To: grub-devel@gnu.org Subject: Re: grub-mkrescue problems in argp_parse Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <20150413204906.4a4897b0@opensuse.site> In-Reply-To: <20150413204906.4a4897b0@opensuse.site> Message-Id: <19949562642841787556@scdbackup.webframe.org> X-Provags-ID: V03:K0:X4NVGz6mPDMpIvAizQWw7+o0P/e9rPIYf40EM3kPkDuEE5kZqME g8MH+1BXoBuvm/Z2vv6dCe3C0rBpWYg3+UodEEwdh+gOAV5jVo93GQTUs5kf+eNJ/h18L0w O6ao6w3NVBJY19dKn/JkjDBFXaqdvACTm3E1sYkloDyTrQCbCiH9A6qQ/igbDEeg9bFV1Jw KrbbPcdVFbMieIOk5P6fg== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.20 Cc: dietmar@proxmox.com 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: Mon, 13 Apr 2015 19:11:00 -0000 Hi, (i wonder why the original mail from Dietmar Maurer does not show up in grub-devel archives or my mailbox) Dietmar Maurer wrote: > > After reverting the following commit everything works again: > > http://git.savannah.gnu.org/cgit/grub.git/commit/?id=cf47a2fba5852014bc59959c5e357e8313933414 Andrei Borzenkov wrote: > It chokes on -V which is "display version and exit" in argp. Alternative -as mkisofs option: -volid 'PVE' With old grub-mkrescue(.in) of 1.99, the version option was -v, which would collide with the -as mkisofs option which has as alias the word "-verbose". > I still > believe this patch was mistake; it leaves no possibility to > disambiguate between grub and external options. So we are back at the reasons why i proposed to introduce a new tool grub-mkiso.c with clear distinction of arguments for grub-mkiso and xorriso, and to have an artlessly implemented but high-fidelity compatibility mode for emulating old grub-mkrescue(.in). My proposal of such an artless shell-to-C translation is posted as http://lists.gnu.org/archive/html/grub-devel/2014-10/msg00000.html (Dietmar's command line would be for new grub-mkiso then.) ---------------------------------------------------------------- Some xorriso musings: Dietmar Maurer wrote: > > # grub-mkrescue -o pve-cd.iso data-gz -- -z -r -V 'PVE' -c boot/boot.cat > > -isohybrid-gpt-basdat -partition_offset 16 -c boot/boot.ca This seems to be mangled a bit. Especially the double option -c. Were there more options ? -isohybrid-gpt-basdat might collide with xorriso options used by grub-mkrescue. (It is intended for ISOLINUX/GRUB2 BIOS/EFI hybrids. E.g. debian-7.7.0-amd64-netinst.iso.) -partition_offset 16 is not really compliant with UEFI specs, which prescribe a single MBR partition starting at block 1, if GPT is present. The whole ISOLINUX/GRUB2 isohybrid world does not care about that prescription. But grub-mkrescue does. To save some intermediate disk space: The generic xorriso command -set_filter_r --zisofs ...paths.in.iso... -- can do the mkzftree(1) compression on the fly, if libz is linked in. Have a nice day :) Thomas