]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Use ${utsname} instead of ${UTSNAME} because latter variable is not defined. 779/head
authorKURODA Hiraku <kuroda@syngram.co.jp>
Fri, 29 Jan 2016 08:29:38 +0000 (17:29 +0900)
committerKURODA Hiraku <kuroda@syngram.co.jp>
Fri, 29 Jan 2016 09:03:30 +0000 (18:03 +0900)
Signed-off-by: KURODA Hiraku <kuroda@syngram.co.jp>
templates/lxc-centos.in

index 5bd2f712fdcd60315864b46a51e5022c7bf95506..ef8061cf98de9a4a6b93ebed4c2c5da052509b3c 100644 (file)
@@ -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 <<EOF > ${rootfs_path}/etc/sysconfig/network
 NETWORKING=yes
-HOSTNAME=${UTSNAME}
+HOSTNAME=${utsname}
 EOF
 
     # set minimal hosts