summaryrefslogtreecommitdiffstats
path: root/hook/hostname
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-11-08 10:02:07 +0100
committerGravatar Christian Hesse <mail@eworm.de>2016-11-08 10:02:07 +0100
commitfc9d31039122afbd2eea19caca4d4b173d023554 (patch)
tree53924684952c1525a011947dbd9aa1b299d09a87 /hook/hostname
parentf6f5145826f47fad5c5c79cd77a51f7987e8c5b8 (diff)
downloadmkinitcpio-hostname-fc9d31039122afbd2eea19caca4d4b173d023554.tar.gz
mkinitcpio-hostname-fc9d31039122afbd2eea19caca4d4b173d023554.tar.zst
print correct name in message
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)"