The first time the system boots, the
/sbin/init
program calls the etc/rc.d/init.d/firstboot
script, which in turn launches the Setup Agent. This application allows the user to install the latest updates as well as additional applications and documentation. To enable this feature we need to modify /etc/sysconfig/firstboot file.
Following are the steps to follow to enable this feature :-
1. Use cat command to view the contents of firstboot configuration file under /etc/sysconfig directory
[root@afzalkhan ~]# cat /etc/sysconfig/firstboot
RUN_FIRSTBOOT=NO
2. Change RUN_FIRSTBOOT parameter to YES to enable this feature
3. Make sure that that firstboot program or firstboot service is run when your linux system boots up.
[root@afzalkhan ~]# chkconfig –list firstboot
firstboot 0:off 1:off 2:off 3:on 4:off 5:on 6:off
[root@afzalkhan ~]#
4. Then reboot or restart Linux system as shown on command example below.
[root@afzalkhan ~]# shutdown -r now
or
[root@afzalkhan ~]# reboot