I am using RHEL 7.0 system. I have this boot.cfg file that has the following fields:
bootstate=0 title=Loading ESXi installer timeout=5 prefix=http://22.214.171.124/esxi65 kernel=tboot.b00
How can I update this boot.cfg file's IP address?
I have earlier used the following script:
sed '/[kernel=tboot.b00]/a [prefix=http://126.96.36.199/esxi65]/' boot.cfg
I was trying to append the updated IP address using sed to the end of the "kernel..." field. but it didn't make any changes.
Secondly, how do I ensure that the changes to the IP address is saved and not temporary?
Thanks in advance