Skip to content

Set the hostname as the device name

Daniele Debernardi requested to merge feature/set-hostname into master

During the pmbootstrap install, also set the hostname as the device name. Also update the /etc/hosts file to resolve the new hostname.

It will change it only if the actual files contains the default value specified by Alpine here: https://git.alpinelinux.org/cgit/aports/tree/main/alpine-baselayout/APKBUILD#n122

If future we may consider to prompt the user for the hostname, like almost every distribution installer does.

This also solves an issue with X11 not starting properly due the NetworkManager doing something with an hostname not set. See here: https://bbs.archlinux.org/viewtopic.php?id=108695

Merge request reports