From: KURODA Hiraku Date: Fri, 29 Jan 2016 08:29:38 +0000 (+0900) Subject: Use ${utsname} instead of ${UTSNAME} because latter variable is not defined. X-Git-Tag: lxc-2.0.0.beta2~19^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F779%2Fhead;p=thirdparty%2Flxc.git Use ${utsname} instead of ${UTSNAME} because latter variable is not defined. Signed-off-by: KURODA Hiraku --- 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