The real issue with this isn’t the FireMotD version but the point in time when the hw information cache file gets generated on boot, the network isn’t up yet.
Just fixed that in openHABian. Add After=network.target network-online.target
to the [Unit] section of /etc/systemd/system/firemotd.service
and do systemctl daemon-reload; systemctl enable --now firemotd.timer.
Gargam3L0 had version FireMotD v7.05.170509 and for some reason the update within openhabian-config didn’t work. This old version didn’t show the IP even with a manual FireMotD -S. So I guess it’s a mixture of both - old version and network not up during boot.
PS: @mstormi please correct me but afaik older openhabian installations don‘t have FireMotD running as a service?
I noticed, although it was resolved, I don’t know if it is related, that after updating to 2.5.10
the IP is shown in the login welcome message only after a couple of minutes from system reboot, not immediately.
[EDIT]
I take that back, it does not work anymore.
[18:44:58] openhabian@openHABianPi:~$ sudo systemctl status firemotd.service
● firemotd.service - Periodic FireMotD stats regeneration
Loaded: loaded (/etc/systemd/system/firemotd.service; enabled; vendor preset: enabled)
Active: active (exited) since Fri 2020-10-30 12:11:13 IST; 6h ago
Process: 342 ExecStart=/usr/local/bin/FireMotD -S -D all &> /dev/null (code=exited, status=0/SUCCESS)
Main PID: 342 (code=exited, status=0/SUCCESS)
Oct 30 12:11:03 openHABianPi FireMotD[342]: RTNETLINK answers: Network is unreachable
Oct 30 12:11:09 openHABianPi FireMotD[342]: W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/buster/InRelease Temporary failure resolving 'raspbian.
Oct 30 12:11:09 openHABianPi FireMotD[342]: W: Failed to fetch https://repos.influxdata.com/debian/dists/jessie/InRelease Temporary failure resolving 'repos.influxda
Oct 30 12:11:09 openHABianPi FireMotD[342]: W: Failed to fetch https://repo.mosquitto.org/debian/dists/buster/InRelease Temporary failure resolving 'repo.mosquitto.o
Oct 30 12:11:09 openHABianPi FireMotD[342]: W: Failed to fetch https://deb.nodesource.com/node_10.x/dists/jessie/InRelease Temporary failure resolving 'deb.nodesourc
Oct 30 12:11:09 openHABianPi FireMotD[342]: W: Failed to fetch https://dl.bintray.com/openhab/apt-repo2/dists/stable/InRelease Temporary failure resolving 'dl.bintra
Oct 30 12:11:09 openHABianPi FireMotD[342]: W: Failed to fetch http://archive.raspberrypi.org/debian/dists/buster/InRelease Temporary failure resolving 'archive.rasp
Oct 30 12:11:09 openHABianPi FireMotD[342]: W: Failed to fetch http://repos.azulsystems.com/debian/dists/stable/InRelease Temporary failure resolving 'repos.azulsyst
Oct 30 12:11:09 openHABianPi FireMotD[342]: W: Some index files failed to download. They have been ignored, or old ones used instead.
Oct 30 12:11:13 openHABianPi systemd[1]: Started Periodic FireMotD stats regeneration.
[18:43:41] openhabian@openHABianPi:~$ sudo systemctl status firemotd.timer
● firemotd.timer - Daily generation of FireMotD stats
Loaded: loaded (/etc/systemd/system/firemotd.timer; disabled; vendor preset: enabled)
Active: inactive (dead)
Trigger: n/a