* grub-mkrescue reacts vaguely on xorriso problems
@ 2017-06-14 9:37 Thomas Schmitt
2017-07-15 10:25 ` Thomas Schmitt
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Schmitt @ 2017-06-14 9:37 UTC (permalink / raw)
To: grub-devel
Hi,
on occasion of
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864701
"grub-common: grub-mkrescue does nothing, successfully"
i wonder whether the reaction of grub-mkrescue on xorriso problems
is intended and appropriate. E.g. with:
grub-mkrescue -o output.iso SOURCE
--------------------------------------------------------------------------
If xorriso is missing, then grub-mkrescue reports
grub-mkrescue: warning: Your xorriso doesn't support `--grub2-boot-info'. Some features are disabled. Please use xorriso 1.2.9 or later..
and returns exit value 0.
I.e. it does not say that xorriso does not work at all and it does not
indicate the failure to its caller.
I understand from
http://git.savannah.gnu.org/cgit/grub.git/tree/util/grub-mkrescue.c#n571
that the warning is only emitted if the ISO gets prepared for x86 BIOS.
So in other cases the run might be totally silent (did not test).
Several distros ship grub-mkrescue in packages which do not mandatorily
depend on xorriso. So a clearer message from upstream about the necessity
of xorriso seems desirable.
--------------------------------------------------------------------------
If xorriso is executable and of sufficient version but the user makes a
mistake with grub-mkrescue argument SOURCE (or with some added xorrisofs
options), then xorriso aborts with e.g.
xorriso : FAILURE : Cannot determine attributes of source file '...' : No such file or directory
...
xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE'
no ISO image emerges but grub-mkrescue exits with value 0.
A xorriso batch run returns exit value 5 if it aborts due to the -abort_on
threshold. But grub-mkrescue ignores the exit value of xorriso in
http://git.savannah.gnu.org/cgit/grub.git/tree/util/grub-mkrescue.c#n963
--------------------------------------------------------------------------
Have a nice day :)
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: grub-mkrescue reacts vaguely on xorriso problems
2017-06-14 9:37 grub-mkrescue reacts vaguely on xorriso problems Thomas Schmitt
@ 2017-07-15 10:25 ` Thomas Schmitt
2017-08-07 16:09 ` Vladimir 'phcoder' Serbinenko
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Schmitt @ 2017-07-15 10:25 UTC (permalink / raw)
To: grub-devel
Hi,
Ping.
(Bug or feature ? If bug: what exactly would be the desirable behavior ?)
--------------------------------------------------------------------------
Date: Wed, 14 Jun 2017 11:37:11 +0200
From: Thomas Schmitt <scdbackup@gmx.net>
To: grub-devel@gnu.org
Subject: grub-mkrescue reacts vaguely on xorriso problems
Hi,
on occasion of
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864701
"grub-common: grub-mkrescue does nothing, successfully"
i wonder whether the reaction of grub-mkrescue on xorriso problems
is intended and appropriate. E.g. with:
grub-mkrescue -o output.iso SOURCE
--------------------------------------------------------------------------
If xorriso is missing, then grub-mkrescue reports
grub-mkrescue: warning: Your xorriso doesn't support `--grub2-boot-info'. Some features are disabled. Please use xorriso 1.2.9 or later..
and returns exit value 0.
I.e. it does not say that xorriso does not work at all and it does not
indicate the failure to its caller.
I understand from
http://git.savannah.gnu.org/cgit/grub.git/tree/util/grub-mkrescue.c#n571
that the warning is only emitted if the ISO gets prepared for x86 BIOS.
So in other cases the run might be totally silent (did not test).
Several distros ship grub-mkrescue in packages which do not mandatorily
depend on xorriso. So a clearer message from upstream about the necessity
of xorriso seems desirable.
--------------------------------------------------------------------------
If xorriso is executable and of sufficient version but the user makes a
mistake with grub-mkrescue argument SOURCE (or with some added xorrisofs
options), then xorriso aborts with e.g.
xorriso : FAILURE : Cannot determine attributes of source file '...' : No such file or directory
...
xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE'
no ISO image emerges but grub-mkrescue exits with value 0.
A xorriso batch run returns exit value 5 if it aborts due to the -abort_on
threshold. But grub-mkrescue ignores the exit value of xorriso in
http://git.savannah.gnu.org/cgit/grub.git/tree/util/grub-mkrescue.c#n963
--------------------------------------------------------------------------
Have a nice day :)
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: grub-mkrescue reacts vaguely on xorriso problems
2017-07-15 10:25 ` Thomas Schmitt
@ 2017-08-07 16:09 ` Vladimir 'phcoder' Serbinenko
0 siblings, 0 replies; 3+ messages in thread
From: Vladimir 'phcoder' Serbinenko @ 2017-08-07 16:09 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 2678 bytes --]
Fixed both problems
Le Sat, Jul 15, 2017 à 12:26 PM, Thomas Schmitt <scdbackup@gmx.net> a
écrit :
> Hi,
>
> Ping.
>
> (Bug or feature ? If bug: what exactly would be the desirable behavior ?)
>
> --------------------------------------------------------------------------
> Date: Wed, 14 Jun 2017 11:37:11 +0200
> From: Thomas Schmitt <scdbackup@gmx.net>
> To: grub-devel@gnu.org
> Subject: grub-mkrescue reacts vaguely on xorriso problems
>
> Hi,
>
> on occasion of
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864701
> "grub-common: grub-mkrescue does nothing, successfully"
>
> i wonder whether the reaction of grub-mkrescue on xorriso problems
> is intended and appropriate. E.g. with:
>
> grub-mkrescue -o output.iso SOURCE
>
> --------------------------------------------------------------------------
>
> If xorriso is missing, then grub-mkrescue reports
>
> grub-mkrescue: warning: Your xorriso doesn't support
> `--grub2-boot-info'. Some features are disabled. Please use xorriso 1.2.9
> or later..
>
> and returns exit value 0.
> I.e. it does not say that xorriso does not work at all and it does not
> indicate the failure to its caller.
>
> I understand from
> http://git.savannah.gnu.org/cgit/grub.git/tree/util/grub-mkrescue.c#n571
> that the warning is only emitted if the ISO gets prepared for x86 BIOS.
> So in other cases the run might be totally silent (did not test).
>
> Several distros ship grub-mkrescue in packages which do not mandatorily
> depend on xorriso. So a clearer message from upstream about the necessity
> of xorriso seems desirable.
>
> --------------------------------------------------------------------------
>
> If xorriso is executable and of sufficient version but the user makes a
> mistake with grub-mkrescue argument SOURCE (or with some added xorrisofs
> options), then xorriso aborts with e.g.
>
> xorriso : FAILURE : Cannot determine attributes of source file '...' :
> No such file or directory
> ...
> xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE'
>
> no ISO image emerges but grub-mkrescue exits with value 0.
>
> A xorriso batch run returns exit value 5 if it aborts due to the -abort_on
> threshold. But grub-mkrescue ignores the exit value of xorriso in
> http://git.savannah.gnu.org/cgit/grub.git/tree/util/grub-mkrescue.c#n963
>
> --------------------------------------------------------------------------
>
> Have a nice day :)
>
> Thomas
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
[-- Attachment #2: Type: text/html, Size: 3732 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-07 16:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-14 9:37 grub-mkrescue reacts vaguely on xorriso problems Thomas Schmitt
2017-07-15 10:25 ` Thomas Schmitt
2017-08-07 16:09 ` Vladimir 'phcoder' Serbinenko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.