grub.cfg kernel argument parsing

Brian Varney brian.varney at broadcom.com
Tue May 29 23:32:24 AEST 2018


Hi Brett,

Thanks for the suggestion.  I discovered that the "memmap" option I was
trying to use is specific to the x86 architecture.  So even if I get it
passed to the kernel correctly it's not going to work for me.  Again --
thanks for taking the time to respond.

-Brian V.

On Sun, May 27, 2018 at 4:08 PM, Brett Grandbois <
brett.grandbois at opengear.com> wrote:

> Looks like the parser is doing variable expansion on the '$' and backslash
> escaping isn't supported?
>
> Try wrapping the address in single quotes, the parser should soak up
> everything in between as-is:
>
> memmap='0x0000000080000000$0000000080000000'
>
> On 26/05/18 01:56, Brian Varney wrote:
>
> Hello all,
>
> I have a Power9 server that came with petitboot installed.  I was able to
> put the PPC version of Fedora 28 on it and that went fine.  However, I need
> to add some kernel parameters to grub.cfg and it seems they are not parsed
> correctly by petitboot.
>
> I tried adding the following kernel parameter to grub.cfg
> *memmap=0x0000000080000000$0000000080000000*
>
> However, when fedora boots, I get the following from 'cat /proc/cmdline':
> (notice '$0' was removed)
> *memmap=0x0000000080000000x0000000080000000*
>
>
>
> Next, I tried escaping with backsplash in grub.cfg:
> *memmap=0x0000000080000000\$0000000080000000*
>
> But this came out as the following in 'cat /proc/cmdline' (backslash
> remained and '$0' still removed)
> *memmap=0x0000000080000000\x0000000080000000*
>
>
> Anybody know how to properly escape the $ so petitboot doesn't swallow it
> up?  Any help would be greatly appreciated
>
> Thanks!
> Brian V.
>
>
>
>
> _______________________________________________
> Petitboot mailing listPetitboot at lists.ozlabs.orghttps://lists.ozlabs.org/listinfo/petitboot
>
>
>
> _______________________________________________
> Petitboot mailing list
> Petitboot at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/petitboot
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/petitboot/attachments/20180529/6772e387/attachment.html>


More information about the Petitboot mailing list