From 54a0b57d45645df3a6e0aac208ae09765618a70a Mon Sep 17 00:00:00 2001 From: KURODA Hiraku Date: Fri, 29 Jan 2016 17:29:38 +0900 Subject: [PATCH] Use ${utsname} instead of ${UTSNAME} because latter variable is not defined. Signed-off-by: KURODA Hiraku --- templates/lxc-centos.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/lxc-centos.in b/templates/lxc-centos.in index 5bd2f712f..ef8061cf9 100644 --- a/templates/lxc-centos.in +++ b/templates/lxc-centos.in @@ -249,7 +249,7 @@ configure_centos() DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes -HOSTNAME=${UTSNAME} +HOSTNAME=${utsname} NM_CONTROLLED=no TYPE=Ethernet MTU=${MTU} @@ -259,7 +259,7 @@ EOF # set the hostname cat < ${rootfs_path}/etc/sysconfig/network NETWORKING=yes -HOSTNAME=${UTSNAME} +HOSTNAME=${utsname} EOF # set minimal hosts -- 2.39.5