Discuss the init script and its job in initializing a Linux system.
What will be an ideal response?
The initramfs must always provide an executable named init that should execute the actual init program on the root file system for the boot process to proceed.
The kernel starts the init program contained in the initramfs. The init program is a shell script that, among other things, loads the kernel modules needed to mount the actual root file system, mounts the root file system, and then finally starts /sbin/init from the root file system.
After checking the partitions and mounting the root file system, the init program (located in the initramfs image) starts /sbin/init, which boots the system and loads all of the services and programs configured for the system.
The init process is always assigned a process ID number of 1. It uses the configuration information in the /etc/inittab file to determine how to run the initialization process.
Once the init process starts, it runs the /etc/init.d/boot script. This script completes initialization tasks such as creating device files in /dev and executing scripts in the /etc/init.d/boot.d/ directory (e.g., mounting local file systems and setting disk quotas).
After the boot script has been completed, init starts the /etc/init.d/rc script. This script uses your runlevel configuration to start services and daemons. Each runlevel has its own set of services configured that are initiated. For example, runlevel 5 includes the X Window components that run the Linux desktop.
You might also like to view...
The ________ VoiceXML tag provides users with options and transfers control to other dialogs based on their selections.
(a)
Which command is used to list and modify password expiration information for user accounts?
A. userupd B. change C. chage D. useradd
Is it possible to nest a switch statement inside an if statement?
What will be an ideal response?
Give an example of an HTTP URL. List the three main components of an HTTP URL, stating how their boundaries are denoted and illustrating each one from your example. To what extent is a URL location transparent?
What will be an ideal response?