That will set the hostname (again) to the correct value by using the hostname file from the writable partition.
RISK: There is admittedly the possibility that if a service starts before all the mounts have been handled, that it will see the hostname as "localhost.localdomain".
The current plan is to create a system unit that contains essentially:
__________
[Unit] writable. mount cies=no
Description=Set the hostname to the value stored on the writable partition
After=etc-
DefaultDependen
[Service] /bin/hostname -F /etc/hostname
Type=oneshot
ExecStart=
__________
That will set the hostname (again) to the correct value by using the hostname file from the writable partition.
RISK: There is admittedly the possibility that if a service starts before all the mounts have been handled, that it will see the hostname as "localhost. localdomain" .