#1146482 dropbear-initramfs: When DHCP server isn't available immediately, remote unlocking is impossible: no search or nameservers found in...

#1146482#5
Date:
2026-09-02 10:35:13 UTC
From:
To:
When the DHCP server isn't available immediately (which typically
occurs after a power outage), I get several lines

IP-Config: no response after xxx secs - giving up

which is normal, but after a few minutes, I get the following error:

no search or nameservers found in /run/net-.conf /run/net-*.conf

and it is impossible to unlock the machine remotely!

#1146482#10
Date:
2026-09-02 11:36:54 UTC
From:
To:
These messages come from
initramfs-tools/scripts/functions:configure_networking() not
src:dropbear.

dropbear-initramfs doesn't configure the network on its own.  It calls
configure_networking().

Sounds like it should be a wishlist bug for initramfs-tools-core to make
the delay configurable or not give up  so easily.

In principle dropbear-initramfs could add some network detection checks
and call configure_networking() over and over untill the networks is up,
but that logic doesn't belong to dropbear-initramfs IMHO, hence closing
this.

As a workaround, you could add a `sleep 300` or so delay in a custom
init-premount script (make sure it starts before dropbear though).  This
might be OK as long as you don't reboot the machine too often.

#1146482#15
Date:
2026-09-02 11:38:00 UTC
From:
To:
BTW, using a static IP instead of DHCP is not an acceptable workaround
as it is then impossible to unlock the partition by typing the
passphrase with the keyboard! (When I type keys, nothing happens.)

#1146482#20
Date:
2026-09-02 11:49:17 UTC
From:
To:
Uh?  I fail to see how network configuration details impact the input
method for remote unlocking.

#1146482#25
Date:
2026-09-02 15:52:51 UTC
From:
To:
I've reported a wishlist bug against initramfs-tools-core
about the DHCP retries here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1146486

I'm wondering. Perhaps an obscure bug somewhere.