I made a custom centos by following the link given below
Now I want to add my own version to the ISO file so that it shows when we check it using the following command
How can I add my own version to the custom ISO?
You should be able to enter custom information into that file. Write your own version for that file and put into /etc/os-release.
after that you should be able to do
If you just wasnt to change the name of your OS and not change any other release information, you should try changing the name in the isolinux.cfg file. Do this change locally and try building the OS again. Then try in a VM if it worked.
Update: Since the method didn't work as per your requirements, I have made some changes to the code itself. Could you try with this code repo mi-centos-7 modified by libregeekingkid If you need to make more changes to the os-release file content, modify the OS-release file in the folder.