Permalink
Browse files

Fix openrc network issues

  • Loading branch information...
1 parent 6626b84 commit b9d679dffbb2bf628e1b803d7c0ab0d21bba05dc Walter Stanish committed Feb 4, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 lxc-gentoo
View
@@ -283,6 +283,11 @@ write_distro_network()
if [ "${IPV4}" == "dhcp" ]; then
ln -s net.lo "$ROOTFS/etc/init.d/net.eth0"
ln -s /etc/init.d/net.eth0 "$ROOTFS/etc/runlevels/default/net.eth0"
+ # otherwise treat network access as auto-provided by openrc, so as to
+ # avoid errors about starting network related scripts when launching
+ # actual network services (sshd, etc.)
+ else
+ echo 'rc_provide="net"' >>"$ROOTFS/etc/rc.conf"
fi
}

0 comments on commit b9d679d

Please sign in to comment.