nfs mount on first boot

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
stsch83
Posts: 4
Joined: Wed Aug 04, 2021 8:30 am

nfs mount on first boot

Post by stsch83 »

Hello,

my goal is to automate the first boot process as much as possible.

So, can mount my nfs storage on first boot???

BR,
Stefan
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: nfs mount on first boot

Post by Joulinar »

Hi,

in theory this might be possible using AUTO_SETUP_CUSTOM_SCRIPT_EXEC setting in 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/Automation_Custom_Script.sh and it will be executed automatically.
# - Option 1 = Host your script online, then use e.g. AUTO_SETUP_CUSTOM_SCRIPT_EXEC=https://myweb.com/myscript.sh and it will be downloaded and executed automatically.
# - Executed script log: /var/tmp/dietpi/logs/dietpi-automation_custom_script.log
AUTO_SETUP_CUSTOM_SCRIPT_EXEC=0
Means you would need to put needed thinks into an own script to have it executed on first boot. DietPi themselves did not offer a functionality to mount network drives automatically during first initial boot. For this you would need to use drive manager.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply