grub.cfg kernel argument parsing

Brian Varney brian.varney at broadcom.com
Sat May 26 01:56:32 AEST 2018


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/petitboot/attachments/20180525/ed8ee23f/attachment.html>


More information about the Petitboot mailing list