Grub2 doesn't support having an ampersand in the arguments list

Solution Verified - Updated -

Issue

  • When installing a system via kickstart, if the kickstart line has an "&" in the URL, this is considered a syntax error by Grub;

    error:/../../grub-core.script/lexer.c:352:syntax error.
    error:/../../grub-core.script/lexer.c:352:Incorrect command.
    error:/../../grub-core.script/lexer.c:352:syntax error.
    
  • The custom kickstart directive below results in installation failure:

    inst.ks=http://myserver.example.com/kickstarts/provision?token=someUUID&static=yes
    
  • The custom Repo URL directive below results in installation failure:

    inst.repo=http://myserver.example.com/distro/provision?token=someUUID&os=rhel8
    

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content