grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About the CLI of both grub-mkrescue versions


From: Andrei Borzenkov
Subject: Re: About the CLI of both grub-mkrescue versions
Date: Mon, 29 Sep 2014 09:04:50 +0400

On Sun, Sep 28, 2014 at 10:28 PM, Thomas Schmitt <address@hidden> wrote:
> 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.

What's the point of having to maintain two versions instead of one?

>                                                                       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
>
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]