Skip to content

Commit

Permalink
lxc-oracle: set hostname with systemd
Browse files Browse the repository at this point in the history
Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
Dwight Engen authored and stgraber committed May 20, 2014
1 parent e702123 commit fd4d297
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/lxc-oracle.in
Expand Up @@ -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 <<EOF > $container_rootfs/etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
Expand Down

0 comments on commit fd4d297

Please sign in to comment.