1

I made a custom centos by following the link given below

https://github.com/joyent/mi-centos-7

Now I want to add my own version to the ISO file so that it shows when we check it using the following command

cat /etc/os-release

How can I add my own version to the custom ISO?

1

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

cat /etc/os-release

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.

  • I just realized this is not what I want to do. I need to make changes that when someone else installs it and runs that command then it shows my version. – sudhansh_ Apr 13 '16 at 11:42
  • @SudhanshAggarwal yes, that's what will happen if you edit the file. – terdon Apr 13 '16 at 12:00
  • @terdon I made these changes to this after installing the ISO on a VM. Are you saying that I can make these changes in the ISO file itself, so that whoever installs this can see the custom version? – sudhansh_ Apr 13 '16 at 12:09
  • @AgentWeirdo yes, precisely. – terdon Apr 13 '16 at 12:29
  • @AgentWeirdo I am taking a look at the source in the link that you gave. Give me a few minutes and I'll edit my answer according to that. – Raju Devidas Apr 13 '16 at 13:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.