So, I am trying to insert b.b00 --- after modules= and before jumpstart.gz in a file on Linux, but can't seem to figure out how to actually do it. I did look at other answers in the forum and apparently none of them have any effects.
My file name is boot.cfg and its content is as follows:
bootstate=0
timeout=5
kernelopt=runweasel
modules=jumstart.gz --- useropts.gz --- features.gz --- qeden.v00 ---tpm.v00
build=3.322.2
updated=0
What I am looking for is as follows:
bootstate=0
timeout=5
kernelopt=runweasel
modules=b.b00 --- jumstart.gz --- useropts.gz --- features.gz --- qeden.v00 ---tpm.v00
build=3.322.2
updated=0
So, basically add b.b00 --- after modules and before jumpstart.gz.
Some commands I tried were:
sed -i '/\[modules=\]/a b.b00 ---' boot.cfg
sed -i '/^jumpstart.gz.*/i b.b00 ---' boot.cfg
None of these commands seem to have any effect on the file. Could anyone please point me in the right direction. I appreciate the help!