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://172.32.88.150/esxi65 kernel=tboot.b00
kernelopt=runweasel formatwithmbr
How can I update this boot.cfg file's IP address?
I have earlier used the following script:
#!/bin/bash
sed '/[kernel=tboot.b00]/a [prefix=http://172.32.88.149/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