From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1W3sOG-0003HD-72 for mharc-grub-devel@gnu.org; Thu, 16 Jan 2014 14:14:08 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3sO8-00038a-Vo for grub-devel@gnu.org; Thu, 16 Jan 2014 14:14:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3sO3-0006CD-Ti for grub-devel@gnu.org; Thu, 16 Jan 2014 14:14:00 -0500 Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:39665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3sO3-0006C2-MY for grub-devel@gnu.org; Thu, 16 Jan 2014 14:13:55 -0500 Received: by mail-lb0-f173.google.com with SMTP id y6so2249630lbh.32 for ; Thu, 16 Jan 2014 11:13:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=t+EN/o/Veg/yh/9k4NcT1ZnL8VJrCzOcI9wrJtMGxis=; b=ZX6/06/+3xInOK2APMdik5GHUpqvWpCloPaFZ/AbbJmb1KIS1/wTW0L3r6mkDE5Z+u Ug2dvJInDkmcAgWdeUkLY0WkZ2Lb1uXGyXFTKVmzWuUMMVvQnMRpDUbkC7ndqXjIknLX a5WZcrRWzYJ2oaTHxRtuwXfuTw18CNidZAUAZUJbUy2uPmms914phEgLYU2P9jVlZb6N Py+GoBoQ2VqQOaQugUQRP+rZQQ09dVG6+FhKjM9t+XNbaDcqNf3JDZWlTF8LJCqKGawk sFvSDPp5ar27JSuoAk2/6kTyTTyW1FD2MVCCHalvN+ApFtuGE/F5GqQWG2c2JPeHUOw9 OeNg== X-Received: by 10.152.3.10 with SMTP id 10mr6106350lay.35.1389899634658; Thu, 16 Jan 2014 11:13:54 -0800 (PST) Received: from opensuse.site (ppp91-76-163-241.pppoe.mtu-net.ru. [91.76.163.241]) by mx.google.com with ESMTPSA id c15sm5080584lbq.11.2014.01.16.11.13.53 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 16 Jan 2014 11:13:54 -0800 (PST) Date: Thu, 16 Jan 2014 23:13:53 +0400 From: Andrey Borzenkov To: The development of GNU GRUB Subject: Re: grub-shell: Pass -no-pad to xorriso when building floppy images Message-ID: <20140116231353.7fbde35a@opensuse.site> In-Reply-To: <1413645726316204936@scdbackup.webframe.org> References: <280626457381791014728@scdbackup.webframe.org> <1413645726316204936@scdbackup.webframe.org> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22d Cc: scdbackup@gmx.net 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 19:14:06 -0000 В Thu, 16 Jan 2014 19:56:16 +0100 "Thomas Schmitt" пишет: > 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. > Ah, right, sorry. > > 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 ? Yes. It is standard behavior where everything after "--" is interpreted as non-option. You need it to avoid unknown option error from parser. > The latter would need to be explored and documented, then. > I think it is enough to say that everything after first "--" is passed onto xorriso. The fact that second "--" will enter native xorriso is documented in xorriso manual; anyone who would like to make use of this feature probably knows it.