https://bugzilla.novell.com/show_bug.cgi?id=789898
https://bugzilla.novell.com/show_bug.cgi?id=789898#c7
--- Comment #7 from Archie Cobbs 2012-11-19 15:38:35 UTC ---
OK, I will concede defeat :)
Just a little background. One example of where this matters is when you need to
get a machine's full name (including domain name) even if networking is not
configured yet. You can't just stick it in /etc/hosts because there's no IP
address known yet, or perhaps dynamic IP assignment via DHCP is being used
without DNS-notify.
In our system of doing things, each machine's name is pre-assigned to the
machine and known at build time. It's how we uniquely identify and label each
machine, and all sorts of other machine-specific activity is based on this
unique name.
E.g., imagine a auto-config setup involving a query to:
http://config-server.example.com/GetMyConfig?machine=${HOSTNAME}
And suppose that the machine's final, static IP address is part of the returned
configuration.
As a workaround, I'll have to use `cat /etc/HOSTNAME` instead of hostname(1).
This is less portable and potentially less reliable, as the file could possibly
be unreadable for some reason, but this will have to suffice for now.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.