diff options
author | Christian Hesse <mail@eworm.de> | 2016-11-08 10:02:07 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-11-08 10:02:07 +0100 |
commit | fc9d31039122afbd2eea19caca4d4b173d023554 (patch) | |
tree | 53924684952c1525a011947dbd9aa1b299d09a87 /hook | |
parent | f6f5145826f47fad5c5c79cd77a51f7987e8c5b8 (diff) | |
download | mkinitcpio-hostname-fc9d31039122afbd2eea19caca4d4b173d023554.tar.gz mkinitcpio-hostname-fc9d31039122afbd2eea19caca4d4b173d023554.tar.zst |
print correct name in message
Diffstat (limited to 'hook')
-rw-r--r-- | hook/hostname | 2 |
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)" |