no network causes slow booting / wanted:no boot msgs

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
att2
Posts: 14
Joined: Tue Jan 07, 2020 12:42 pm

no network causes slow booting / wanted:no boot msgs

Post by att2 »

Hello,

I frequently experience the case of slow booting especially when no network is connected.
How can I speed up the boot process despite there is no network there?

Furthermore, I want to run NTP in the background when booting.
"[ INFO ] DietPi-Run_NTPD | NTPD: Waiting for completion of systemd-timesyncd (2/60)" ---> where can I change this magic constant "60" to something more favourable like 10 or so ?

And how can I completely blank the screen during booting unless the X window system appears ?
User avatar
Joulinar
Posts: 2052
Joined: Sat Nov 16, 2019 12:49 am

Re: no network causes slow booting / wanted:no boot msgs

Post by Joulinar »

Hi,

this is as expected because your system is waiting on a valid network connection as well as the time sync to be completed. However you could bypass both checks. Just go to /DietPi/dietpi.txt and set the following 2 lines to 0.

Code: Select all

# Delay boot until network is established: 0=disabled | 1=10 second wait max (default) | 2=infinite wait
CONFIG_BOOT_WAIT_FOR_NETWORK=0

# Network time sync: 0=disabled | 1=boot only | 2=boot + daily | 3=boot + hourly | 4=Daemon + Drift
CONFIG_NTP_MODE=0
Now your system should boot quite fast as it doesn't care about valid network connection or time sync.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply