From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XWLE0-0004n0-K4 for mharc-grub-devel@gnu.org; Tue, 23 Sep 2014 04:13:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWLDu-0004df-4z for grub-devel@gnu.org; Tue, 23 Sep 2014 04:13:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWLDn-0005eI-UX for grub-devel@gnu.org; Tue, 23 Sep 2014 04:13:21 -0400 Received: from mout.gmx.net ([212.227.17.21]:64583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWLDn-0005dW-Lk for grub-devel@gnu.org; Tue, 23 Sep 2014 04:13:15 -0400 Received: from scdbackup.webframe.org ([87.167.165.221]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MW8PN-1XlVWu0cK9-00XJxh for ; Tue, 23 Sep 2014 10:13:09 +0200 Date: Tue, 23 Sep 2014 10:12:12 +0200 From: "Thomas Schmitt" To: grub-devel@gnu.org Subject: About the CLI of both grub-mkrescue versions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <31041545521760249029@scdbackup.webframe.org> X-Provags-ID: V03:K0:n/Fz56Cqg9ByBnME0wTqGDeCT2mbhHKxYHwI5jD9nOEt4SoZsLz I2l8dBV6R8IBSpW8ATm6Gt7ZTVBVNidsKqzzeoWz9txEtji3815LIsmkyu3nupSGwsGtyJD owQGs8i2mM1Sb/YheDpDdyW/3U4AmBkNVG8CNAbtvMNxpZwIQvuLFhh1dLOmP9xJu7VGZ8z I7CXXFDpXBg9r9YgyijrA== 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.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: Tue, 23 Sep 2014 08:13:28 -0000 Hi, i recently advertised grub-mkrescue as replacement of script snippets for creating ISO images with legacy GRUB. But it is not very appealing to the audience if i have to mention the different interpretation of argument "--" by the shell script of GRUB-2.00 and by the C program of the git master branch. The C program demands "--" before any custom options for xorriso -as mkisofs are accepted. Omitting it lets argp_parser() return ARGP_ERR_UNKNOWN rather than adding the mkisofs option to the xorriso argument list. The shell script forwards "--" to xorriso -as mkisofs, where it ends the mkisofs emulation. Afterwards, the additional mkisofs options are not understood by xorriso. We discussed this a while ago in the thread following http://lists.gnu.org/archive/html/grub-devel/2014-01/msg00074.html There was no conclusion. If this CLI change shall persist, then there needs to be some indication for scripts, whether the "--" is mandatory or harmful. Further, the documentation of grub-mkrescue needs to be updated. Including the help text in the C code, which currently describes the behavior of the shell script. In my personal view, it would be better to keep the behavior of GRUB-2.00. E.g. by replacing in grub-mkrescue.c line 229 return ARGP_ERR_UNKNOWN; by a call of xorriso_push() ... i guess ... Have a nice day :) Thomas