Automate the Post-installation Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Posts: 39
Joined: Tue Jan 19, 2021 11:51 am

Automate the Post-installation

Post by cmoulliard »


I'm wondering if it is possible to customzie the post installation when we use the automated installation and to by example have a script able
to install some additional packages "e.g. apt-get net-tools) ?


User avatar
Posts: 4835
Joined: Sat Nov 16, 2019 12:49 am

Re: Automate the Post-installation

Post by Joulinar »


just use the AUTO_SETUP_CUSTOM_SCRIPT_EXEC section on dietpi.txt

Code: Select all

# Custom Script (post-networking and post-DietPi install)
# - Allows you to automatically execute a custom script at the end of DietPi install.
# - Option 0 = Copy your script to /boot/ and it will be executed automatically.
# - Option 1 = Host your script online, then use e.g. AUTO_SETUP_CUSTOM_SCRIPT_EXEC= and it will be downloaded and executed automatically.
# - Executed script log: /var/tmp/dietpi/logs/dietpi-automation_custom_script.log
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply