-
-
Notifications
You must be signed in to change notification settings - Fork 498
Booting process
Frankie Wittevrongel edited this page Nov 11, 2019
·
7 revisions
This page is a community contribution. Not official dietPi Documentation
Prior to be shipped, the script PREP_SYSTEM_FOR_DIETPI.sh is executed on every imagefile.
On the first boot of a fresh install of DietPi. The systemd services are launched in the following order :
- DietPi-FS_partition_resize (inflate root partition to 100% of the disk space available)
- DietPi-RAMlog
- DietPi-RAMdisk (mount /boot/DietPi and it's config files in RAM as a tmpfs)
-
- DietPi-PreBoot (Detect HW, Set overclock, Set CPU Governor, Call Apply_DietPi_FirstRun_Settings )
- Apply_DietPi_FirstRun_Settings: Generate Swapfile, Apply Timezone,Locale,Keyboard, and a lot more ...
- DietPi-Boot (start network interfaces, set swap, run survey, set install stage to 2, Start ntpd )
- DietPi-PostBoot( Print DietPi login banner )
Then, when you login rootfs/etc/bashrc.d/dietpi.bash
is executed and load dietpi/dietpi-login
- execute Run_DietPi_First_Run_Setup where all the questions are asked or dietpi.txt is used to automate.
- dietpi-update
- run dietpi-software installs
TODO
The following services are launched in this order
- DietPi-RAMlog
- DietPi-RAMdisk (mount /boot/DietPi and it's config files in RAM as a tmpfs)
- DietPi-PreBoot (Detect HW, Set overclock, Set CPU Governor )
- DietPi-Boot (start network interfaces, start ntpd )
- DietPi-PostBoot(check for dietpi updates, start dietpi-services, Print DietPi login banner )
Then, when you login rootfs/etc/bashrc.d/dietpi.bash
is executed and load dietpi/dietpi-login
- show licence
Project management
Extend
- DietPi-Software list
- DietPi TCP/UDP port usage list
- How to add a new software title
- How to create a DietPi image for Raspberry Pi
- How to create a DietPi image for VirtualBox
- How to create a DietPi image for VMware
- How to create a DietPi image for Parallels (macOS)
- How to create a DietPi image for x86_64 PCs (BIOS)
- How to create a DietPi image for x86_64 PCs (UEFI)
Knowledge Base