normalize device names so they pass hostname checks
When running pmbootstrap init
with device-x86_64 the default hostname is invalid because it contains an underscore.
This MR automatically replaces underscores with dashes in the hostname field and truncates hostname strings to futureproof.
Edited by Administrator