From fc9d31039122afbd2eea19caca4d4b173d023554 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 8 Nov 2016 10:02:07 +0100 Subject: print correct name in message --- hook/hostname | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hook') 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)" -- cgit v1.2.3-70-g09d2