[lxc-devel] [lxc-ci/master] images/centos: Template DHCP_HOSTNAME

monstermunchkin on Github lxc-bot at linuxcontainers.org
Thu Mar 5 11:18:43 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 357 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200305/239fca11/attachment.bin>
-------------- next part --------------
From aecddf818b3be7c530837cb627a8b4bc412bf608 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Thu, 5 Mar 2020 12:18:17 +0100
Subject: [PATCH] images/centos: Template DHCP_HOSTNAME

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 images/centos.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/images/centos.yaml b/images/centos.yaml
index 054fa14..a7269f8 100644
--- a/images/centos.yaml
+++ b/images/centos.yaml
@@ -371,7 +371,7 @@ files:
      HOSTNAME=LXC_NAME
      TYPE=Ethernet
      MTU=
-     DHCP_HOSTNAME=`cat /proc/sys/kernel/hostname`
+     DHCP_HOSTNAME=LXC_NAME
    releases:
     - 8
     - 8-Stream
@@ -386,7 +386,7 @@ files:
      HOSTNAME={{ container.name }}
      TYPE=Ethernet
      MTU=
-     DHCP_HOSTNAME=`cat /proc/sys/kernel/hostname`
+     DHCP_HOSTNAME={{ container.name }}
    releases:
     - 8
     - 8-Stream


More information about the lxc-devel mailing list