From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1W3s8M-0008L3-BT for mharc-grub-devel@gnu.org; Thu, 16 Jan 2014 13:57:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3s8F-0008KQ-7E for grub-devel@gnu.org; Thu, 16 Jan 2014 13:57:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3s89-0000ix-JL for grub-devel@gnu.org; Thu, 16 Jan 2014 13:57:35 -0500 Received: from mout.gmx.net ([212.227.17.21]:51661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3s89-0000iU-9k for grub-devel@gnu.org; Thu, 16 Jan 2014 13:57:29 -0500 Received: from scdbackup.webframe.org ([87.167.175.77]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lx8ZJ-1VFjHt0ggb-016btU for ; Thu, 16 Jan 2014 19:57:28 +0100 Date: Thu, 16 Jan 2014 19:56:16 +0100 From: "Thomas Schmitt" To: grub-devel@gnu.org Subject: Re: grub-shell: Pass -no-pad to xorriso when building floppy images Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <280626457381791014728@scdbackup.webframe.org> In-Reply-To: <280626457381791014728@scdbackup.webframe.org> Message-Id: <1413645726316204936@scdbackup.webframe.org> X-Provags-ID: V03:K0:eTmQfBGtK03KybTCvPNg+Mmi++5KzNKgtmGtgWQ62hxRFaMJwVU iheZfMrlHD63x3LqeLMdRNJOnZnVW56DlY6dye+iqCY8bVeXxZrRdX4aalAoF2d/+u1Ea0W D9i3z0wNxOdebZvLMtkOXDQeAeJ/43sBgwiGIOaknlIPznFXh/voaNyuD4wTLvqvqWtPhHV kSddNfHE7OHvaLFQK06fg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 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: Thu, 16 Jan 2014 18:57:40 -0000 Hi, > There is no second "--". grub-mkrescue --help tries to say, that > everything after "--" is simply passed on to xorriso. What is > confusing, is "or any of the mkisofs options" in previous sentence > which implies that "--" is not needed. It used to work the way which is still in the docs. See http://git.savannah.gnu.org/cgit/grub.git/tree/util/grub-mkrescue.in?id=2.00 Its arguments are interpreted by while test $# -gt 0 do ... case "$option" in ... *) source="${source} ${option} $@"; break ;; esac done I.e the unrecognized arguments are added to the list of source files which is later submitted to the xorriso -as mkisofs emulation: # build iso image "${xorriso}" -as mkisofs ... ${source} Among the xorriso arguments, the "--" has the effect that xorriso will leave mkisofs emulation and interpret the following arguments as its native commands and their parameters. But the new C code obviously thinks too much when seeing single-dash arguments, which it should handle as xorriso arguments. And it eats "--". At least if it is the first non-mkrescue argument. So: What argument interpretation behavior is grub-mkrescue 2.02 supposed to show ? The one that is currently documented and matches grub-mkrescue.in of 2.00 ? Or the one that is result of using grub-core/gnulib/argp-parse.c ? The latter would need to be explored and documented, then. Have a nice day :) Thomas