I was able to get my Chromium OS (cloudready
74.4.58 (Developer Build - neverware) stable-channel chromeover64) device to have a hostname and send the hostname via dhcp/ddns to update my local zone file. Steps:
1. Make the root partition read-write, i. e. "mount -o remount,rw /" as root.
3. Create a file, e. g. /etc/chromium/policies/managed/1.policy with the extension "policy" and contents:
{
"DeviceHostnameTemplate": "<your hostname>"
}
4. Test the policy with chrome://policy
5. Create a file /etc/hostname with contents <your hostname> .
6. Append the line "hostname -F /etc/hostname" to /usr/share/cros/init/shill-pre-start.sh .
7. Restart, you may see a "chronos@<your hostname> at a crosh->shell prompt, and on your dhcp server (ISC) you will see your hostname in the output of "dhcp-lease-list"
Hope this works for you.