From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XYJER-0000Oj-Fz for mharc-grub-devel@gnu.org; Sun, 28 Sep 2014 14:30:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYJEJ-0000NF-2u for grub-devel@gnu.org; Sun, 28 Sep 2014 14:30:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYJED-0002st-JN for grub-devel@gnu.org; Sun, 28 Sep 2014 14:29:55 -0400 Received: from mout.gmx.net ([212.227.17.22]:54734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYJED-0002rq-1a for grub-devel@gnu.org; Sun, 28 Sep 2014 14:29:49 -0400 Received: from scdbackup.webframe.org ([87.167.145.87]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LuP19-1YIKqR3TAV-011mKZ for ; Sun, 28 Sep 2014 20:29:40 +0200 Date: Sun, 28 Sep 2014 20:28:42 +0200 From: "Thomas Schmitt" To: grub-devel@gnu.org Subject: Re: About the CLI of both grub-mkrescue versions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <18490546117595467817@scdbackup.webframe.org> In-Reply-To: <18490546117595467817@scdbackup.webframe.org> Message-Id: <12011546142310303634@scdbackup.webframe.org> X-Provags-ID: V03:K0:UdVjWbx9YScec9Jhxxq4ltCwyBOYxDMdyR6CWOrny731nP6C0Vl 8/AXhzJpdr6oFkszH+Wd/+ewZDhytOWQC0g0nkuZ+SIolPWbWtOYGxRVxqQoADtcLWbMQwK 5pfuNvh1qnXL30FSfZOGQ2K4xr+Ic27xznOfh0JWvrzCNBNlyI9Hcx31wCcDjunBC5jaOeJ HWIetLuSvxy9mPWDfEBBA== 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.22 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: Sun, 28 Sep 2014 18:30:02 -0000 Hi, how about this: ----------------------------------------------------------------- The C program gets renamed to grub-mkiso.c. The binary gets installed under two names: grub-mkiso and grub-mkrescue. If started as "grub-mkiso" the program implements the change in the CLI. I.e. "--" marks the start of xorriso -as mkisofs options. If started as "grub-mkrescue", an own argument parser implements the old behavior of the grub-mkrescue(.in) script. I.e. unknown arguments are used as xorriso -as mkisofs options. The unknown argument "--" then causes xorriso -as mkisofs emulation to end. ----------------------------------------------------------------- This would avoid to bother scripting users of grub-mkrescue or maintainers of things like http://www.unix.com/man-page/linux/1/GRUB-MKRESCUE/ The name grub-mkiso would be well appropriate because the program produces GRUB2 bootable ISO images not only for rescue systems, but also for system distributions and live CDs. Needed would be: - Legacy parser in the C program compatible to old grub-mkrescue.in - New help text in C program to reflect grub-mkiso CLI. - Old help text in C program gets triggered by the legacy parser. It should mention that there is also the more modern grub-mkiso. - Update docs/grub.texi, describing grub-mkiso and mentioning that grub-mkrescue is outdated. Except the legacy parser, all these tasks have to be addressed anyway, in order to reflect the current change from grub-mkrescue.in to grub-mkrescue.c. Have a nice day :) Thomas