Set hostname in preos
Merge branch 'preos' into 4.0-pre-not-stable