mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-29 17:46:46 +00:00
Merge pull request #779 from hiraku/fix-centos-template-uppercase
Use ${utsname} instead of ${UTSNAME} because latter variable is not defined
This commit is contained in:
commit
a5405bd0b7
@ -249,7 +249,7 @@ configure_centos()
|
|||||||
DEVICE=eth0
|
DEVICE=eth0
|
||||||
BOOTPROTO=dhcp
|
BOOTPROTO=dhcp
|
||||||
ONBOOT=yes
|
ONBOOT=yes
|
||||||
HOSTNAME=${UTSNAME}
|
HOSTNAME=${utsname}
|
||||||
NM_CONTROLLED=no
|
NM_CONTROLLED=no
|
||||||
TYPE=Ethernet
|
TYPE=Ethernet
|
||||||
MTU=${MTU}
|
MTU=${MTU}
|
||||||
@ -259,7 +259,7 @@ EOF
|
|||||||
# set the hostname
|
# set the hostname
|
||||||
cat <<EOF > ${rootfs_path}/etc/sysconfig/network
|
cat <<EOF > ${rootfs_path}/etc/sysconfig/network
|
||||||
NETWORKING=yes
|
NETWORKING=yes
|
||||||
HOSTNAME=${UTSNAME}
|
HOSTNAME=${utsname}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# set minimal hosts
|
# set minimal hosts
|
||||||
|
Loading…
Reference in New Issue
Block a user