aboutsummaryrefslogtreecommitdiffstats
path: root/hook/hostname
diff options
context:
space:
mode:
Diffstat (limited to 'hook/hostname')
-rw-r--r--hook/hostname2
1 files changed, 1 insertions, 1 deletions
diff --git a/hook/hostname b/hook/hostname
index 754c041..7b6e331 100644
--- a/hook/hostname
+++ b/hook/hostname
@@ -8,7 +8,7 @@ run_latehook() {
hostprefix="$(cat "${newroot}/etc/hostname")"
if [[ -n "${hostname}" ]]; then
- msg ":: Setting hostname for main system to '${hostname}'..."
+ msg ":: Setting hostname for main system to '${hostprefix}-${hostname}'..."
elif [[ -e /sys/class/dmi/id/product_uuid ]]; then
msg ":: Setting hostname from product uuid..."
hostname="$(sha1sum < /sys/class/dmi/id/product_uuid | cut -c1-8)"