Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problems with dhcpcd





On 8/10/23 14:54, Lloyd Parkes wrote:

That was all with dhcpcd 10.0.3. I'll try and look into the source code and see why the reason field might make a difference. It could just be something causing trouble in the early boot and the reason is just a coincidence.

I added some debugging to /libexec/dhcpcd-run-hooks and things started working ... better.

I created an empty file called /var/log/debug and added "exec >> /var/log/debug 2>&1" to the top of /libexec/dhcpcd-run-hooks.

With this change the hostname is reliably set by the time I ssh in to the Raspberry Pi after a reboot, but the hostname is not set quickly enough for Postfix to notice it and the initial hostname prompt on the console still says "Amnesiac".

Every time I reboot the Raspberry Pi, I get one more line in /var/log/debug that says "usmsc0: Setting hostname: rpi3-1.must-have-coffee.gen.nz".

Cheers,
Lloyd


Home | Main Index | Thread Index | Old Index