On Tue, Sep 22, 2015 at 8:52 AM, Steven Shiau <[email protected]> wrote:
...
> BTW, one more question. Is that possible to do some variable substitution in
> preconfig?
...
> I tried to use:
> configfile $prefix/grub.cfg-01-${net_default_mac//:/-}
> However, this bash variable substitution apparently is not working. So in
> the preconifg, rescue mode, how can I make that?
>

It does not work at all, preconfig or not preconfig. You could try to
preload tr module and use

tr --set pretty_mac - : $net_default_mac

although I'm not sure how it will handle lone `-' (argument parsing); probably

tr --set pretty_mac x- x: $net_default_mac

is more foolproof.

Of course all notes about lack of conditional error handling at this
stage still apply ...

_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub

Reply via email to