Monday, November 12, 2007

Fedora Firstboot

Anybody wondering what is firstboot and why it is being enabled on the very first installation of Fedora OS?

Generally, firstboot is another daemon service offered by Fedora.

Firstboot is an initial configuration utility script called by Fedora on the very first time a system boots up after an installation process. Once firstboot daemon has been run by the system, a new file /etc/sysconfig/firstboot is created. This firsboot file is then being checked by firstboot daemon every boot up process. If firstboot daemon finds the file, firstboot daemon script will not be run once again unless modified. Otherwise, if the file does not exists, the setup application would then be launched for an initial system configuration by firstboot.

The file firstboot created from /etc/sysconfig when disabled contains the following content :
~~~~~~~~~~~~~~~~~~~
RUN_FIRSTBOOT=no
~~~~~~~~~~~~~~~~~~~

Here's how to disable firstboot in several ways
------------------------------------------------

From CLI, as root simply
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# echo "RUN_FIRSTBOOT=no" > /etc/sysconfig/firstboot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Alternatively, using chkconfig linux command to disable firstboot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# chkconfig --levels 35 firstboot off
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Or simply edit /etc/sysconfig/firstboot and modify

~~~~~~~~~~~~~~~~~~~
RUN_FIRSTBOOT=yes
~~~~~~~~~~~~~~~~~~~

to

~~~~~~~~~~~~~~~~~~~
RUN_FIRSTBOOT=no
~~~~~~~~~~~~~~~~~~~

If you wish to go back to anaconda firstboot option when things goes wrong, you can go back to this firstboot document entry.

Have a nice day.

PS
I have been out for a long time but not malfunctioning and idle, just trying to be more busy and accomplish more stuff. Thanks for staying, cheers! Ey, Fedora 8 was released!

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy