If HOSTNAME is absent from /etc/sysconfig/network ipa-client-install --hostname won't set it up.
Related to #1368 and https://bugzilla.redhat.com/show_bug.cgi?id=714919, discussed over IRC.
I have patch in http://fedorapeople.org/gitweb?p=abbra/public_git/freeipa.git;a=commitdiff;h=2bd9cac41dceb8d57e2e350a08776eedb6d11bf6
Extracted code from systemd integration work and made a separate patch.
Patch sent for review.
Small addendum. If HOSTNAME isn't in /etc/sysconfig/network then the value of the system hostname is not saved and restored.
Metadata Update from @myllynen:
- Issue assigned to abbra
- Issue set to the milestone: FreeIPA 2.1.3 (bug fixing)
to comment on this ticket.