From: Dwight Engen Date: Tue, 20 May 2014 14:33:30 +0000 (-0400) Subject: lxc-oracle: set hostname with systemd X-Git-Tag: lxc-1.0.4~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2ad73ba6000cc731c2d1e38689afdc29069c936;p=thirdparty%2Flxc.git lxc-oracle: set hostname with systemd Signed-off-by: Dwight Engen Acked-by: Stéphane Graber --- diff --git a/templates/lxc-oracle.in b/templates/lxc-oracle.in index 52aa63342..5c517d6b1 100644 --- a/templates/lxc-oracle.in +++ b/templates/lxc-oracle.in @@ -294,6 +294,10 @@ TYPE=Ethernet EOF # set the hostname + if [ $container_release_major -ge "7" ]; then + # systemd honors /etc/hostname + echo "$name" >$container_rootfs/etc/hostname + fi cat < $container_rootfs/etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no