Comment 6 for bug 1418966

Revision history for this message
James Hunt (jamesodhunt) wrote :

The current plan is to create a system unit that contains essentially:

__________

[Unit]
Description=Set the hostname to the value stored on the writable partition
After=etc-writable.mount
DefaultDependencies=no

[Service]
Type=oneshot
ExecStart=/bin/hostname -F /etc/hostname
__________

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".