diff options
-rw-r--r-- | hook/hostname | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hook/hostname b/hook/hostname index 0ef6f6f..4606362 100644 --- a/hook/hostname +++ b/hook/hostname @@ -11,6 +11,7 @@ run_latehook() { hostprefix="$(cat "${newroot}/etc/hostprefix")" if [[ -n "${hostname}" ]]; then + hostname="${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..." |