Commit fd4d297d by Dwight Engen Committed by Stéphane Graber

lxc-oracle: set hostname with systemd

parent e702123a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment