Add an option to change the device hostname (2/2).
Port this 2b57e7bde8b87b21c178737720a96ddfe4bae001
Signed-off-by: PipelinerArd <kristoferard@gmail.com>