{"action":"closed","issue":{"url":"https://api.github.com/repos/iocage/iocage/issues/87","labels_url":"https://api.github.com/repos/iocage/iocage/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/iocage/iocage/issues/87/comments","events_url":"https://api.github.com/repos/iocage/iocage/issues/87/events","html_url":"https://github.com/iocage/iocage/issues/87","id":80429744,"number":87,"title":"Setting host_hostname does not set the hostname in the jail","user":{"login":"hxw","id":143462,"avatar_url":"https://avatars.githubusercontent.com/u/143462?v=3","gravatar_id":"","url":"https://api.github.com/users/hxw","html_url":"https://github.com/hxw","followers_url":"https://api.github.com/users/hxw/followers","following_url":"https://api.github.com/users/hxw/following{/other_user}","gists_url":"https://api.github.com/users/hxw/gists{/gist_id}","starred_url":"https://api.github.com/users/hxw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hxw/subscriptions","organizations_url":"https://api.github.com/users/hxw/orgs","repos_url":"https://api.github.com/users/hxw/repos","events_url":"https://api.github.com/users/hxw/events{/privacy}","received_events_url":"https://api.github.com/users/hxw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-25T07:23:36Z","updated_at":"2015-05-26T16:04:26Z","closed_at":"2015-05-26T16:04:26Z","body":"the following command did not set the hostname correctly:\r\n```\r\niocage iocage clone templateone tag=jail-one host_hostname=\"jail-one\"  boot=on\r\n```\r\nThe PROPERTIES section of the nam page implies this this the way to set the jail's hostname\r\n\r\nRuning a \"get all\" shows host_hostname was set correctly but the rc.conf hostname was still the uuid value,  Looking through the script I see that the rc.conf hostname will always be set to uuid on creation and that host_hostname did not appear to be used.\r\n\r\nI see that there is another property \"hostname\" that the jexec uses to set host.hostname..\r\nThe  allow_set_hostname parameter defaults to on so the rc.conf value takes precedence over the jexec parameter..\r\n(hope that is clear)\r\n\r\nMy work around: (set hostname property and disable allow_set_hostname)\r\n```\r\niocage iocage clone templateone tag=jail-one hostname=\"jail-one\"  allow_set_hostname=\"0\" boot=on\r\n```\r\n\r\nI am not sure if the work around is the correct behaviour and just the man page needs changing to reflect this *or* the man page is right and the script should be updating the jail's rc.conf in the create and set commands."}}