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.1.0.alpha1~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd4d297dd62035dc7ef937181f32803cbcfb998d;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 2fa289b7b..8a8c821e1 100644 --- a/templates/lxc-oracle.in +++ b/templates/lxc-oracle.in @@ -340,6 +340,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