Changing The CentOS Name On Boot

Home » CentOS » Changing The CentOS Name On Boot
CentOS 12 Comments

This can be found via a search engine. http://www.rackspace.com/knowledge_center/article/CentOS-hostname-change

12 thoughts on - Changing The CentOS Name On Boot

  • This way one changes hostname reported by

    hostname

    command (which usually though not necessarily is what the machine is registered on network with). My impression was the OP (original poster)
    wishes the system claim to be different from (CentOS) as he makes hist own tweaked distribution disk (or whatever the reason is). This last (CentOS, RedHat Enterprise, Debian,…) appears in many places, GRUB configuration file, splash screen image to name some.

    Valeri

    ++++++++++++++++++++++++++++++++++++++++
    Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247
    ++++++++++++++++++++++++++++++++++++++++

  • I am kinda getting a tweaked distrubution with CentOS, So this is kinda rebranding. I am not trying to change the hostname, trying to change the System OS name in the on boot screen.

    I have changed the grub configuration file and it reflects in the Boot OS
    selection screen, login screen. But only in the on boot screen does it not reflect. My search led me to something called plymouth, and the text (tri colour) theme is loaded. Trying to still meddle with it. But with no luck.

  • there are various bitmap image files used for the boot screen, the gnome login screen, and so forth. to change the branding, you’d need to recreate all these.

  • just so i understand this – why are you trying to hide the fact that this is CentOS you are running there ?

  • I am just learning :-)
    As a part of understanding various components of the boot process. Modifing various components and trying to understand how things work.

  • Thats ‘plymouth’, specifically the text theme. Looking at the plymouth source, it uses /etc/system-release by default (and it looks for /etc/os-release too, but I think that’s not something in CentOS6. /etc/system-release should be a symlink to
    /etc/CentOS-release). Assuming you’re already updating
    /etc/system-release to rebrand your spin of CentOS, it should automatically be updated when you rebuild your initrd.

  • Hey Billings, Thanks for the response. Just a quick question, you are talking about initramfs or initrd ?? My
    /boot dosent seem to have a initrd.img rather does seem to have a initramfs..

  • Hi Billing and others, Thanks to your help, learnt a lot about plymouth and yay, it actually works
    :-)
    Thanks to all the help and the fast response :-)