Booting process - MichaIng/DietPi GitHub Wiki
First boot process
On the first boot of a fresh DietPi install. The systemd services are launched in the following order:
- DietPi-FS_partition_resize: Inflate root partition and file system to 100% of available disk space
- DietPi-RAMlog: Mount tmpfs on /var/log and copy empty log files from disk
-
- DietPi-PreBoot: Detect SBC model and apply CPU governor settings
- DietPi-FirstBoot: Apply AUTO_INSTALL settings from dietpi.txt
- DietPi-PostBoot: Print login banner
Then, when you login /etc/bashrc.d/dietpi.bash
is executed and loads /boot/dietpi/dietpi-login
:
- Load DietPi-Globals to shell session
- Print DietPi-Banner and lincense agreement prompt
- DietPi-Update
- DietPI-Software: Further firstrun setup prompts and steps are applied
Normal boot process
The following services are launched in this order:
- DietPi-RAMlog: Mount tmpfs on /var/log and copy empty log files from disk
- DietPi-PreBoot: Detect SBC model and apply CPU governor settings
- DietPi-PostBoot: Check for DietPi updates, start software services, run custom user scripts and print login banner
Then, when you login /etc/bashrc.d/dietpi.bash
is executed and loads /boot/dietpi/dietpi-login
:
- Load DietPi-Globals to shell session
- Print DietPi-Banner and in case start DietPi-Autostart choices