Fresh eyes - my sed command will not do what I want

Hm, not sure. Seems to work fine if I do it in terminal.

What if you use

sed 's/Boot with open source drivers/'"${2}"'/g' "${kernels_cfg}"