Tasks to bring up a system
When a linux system is booted up, severel tasks need to be accomplished:
- mount virtual file systems
- initialize devices
- mount a file system unto
/
. This is special because it does not involve the mount
system call, and there is no file system where it is mounted into.
- mount swap partitions or swap files
- check integrity of file systems (for example with
fsck
)
- activate swap
- set the system clock
- connect to the internet/network
- start the process with PID 1. This is special because it does not use
fork
.
- start daemons
These tasks should run as parallel as possible to bring up the system as fast as possible.