1) Emerge openrc-0.5.2 and dhcpcd-5.1.2. You do not need openresolv.
2) Do not run the "network" service in any runlevel, but do run "net.lo", "net.eth0", and "dhcpcd" in the boot runlevel and networked services ("ntp-client", "ntpd", etc.) in the default runlevel.
3) You do not need anything in /etc/conf.d/network, but you do need the following in /etc/conf.d/net:
Code: Select all
config_eth0="dhcp"Code: Select all
waitipAs for the long version:
---
Hi,
I've just upgraded to OpenRC 0.5.1 without the oldnet USE flag. I moved /etc/conf.d/net into /etc/conf.d/network, deleted /etc/init.d/net.lo and /etc/init.d/net.eth0 and added network and dhcpcd to the boot runlevel. My network uses DHCP to obtain an IP from a router.
On startup, both dhcpcd and network claim to have started just fine, but they take 0 time to do so, and other services (ntp-client and netmount) fail immediately after. Once I log in, the network is fine, but I can't tell if that's because the DHCP request was backgrounded, or because my router gives me the same IP address every time. There is no mention of DHCP when I try dmesg.
Also note that while ntp-client and netmount claim to be "started", although my NFS shares are not mounted. Restarting each after boot makes it work properly.
Relevant info:
/etc/conf.d/network
Code: Select all
modules=( "iproute2" )
config_eth0="dhcp"Code: Select all
lvm | boot
xdm | nonetwork default
netmount | default
swap | boot
ntp-client | default
consolefont | boot
network | boot
keymaps | boot
mtab | boot
modules | boot
hwclock | boot
sshd | default
ntpd | default
mysql | default
savecache | shutdown
consolekit | boot
alsasound | boot
root | boot
udev | sysinit
fsck | boot
killprocs | shutdown
postgresql-8.4 | default
smartd | default
devfs | sysinit
dmesg | sysinit
hald | boot
lm_sensors | default
vixie-cron | default
local | nonetwork default
acpid | boot
procfs | boot
sysctl | boot
localmount | boot
dhcpcd | boot
mount-ro | shutdown
termencoding | boot
microcode_ctl | boot
syslog-ng | boot
bootmisc | boot
device-mapper | boot
urandom | boot
pulseaudio | boot
hostname | boot
dbus | bootCode: Select all
Portage 2.1.7.1 (default/linux/amd64/2008.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r2-x86_64-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 14 Oct 2009 18:00:01 +0000
app-shells/bash: 4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python: 2.6.3, 3.1.1-r1
dev-util/cmake: 2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.5.1
sys-apps/sandbox: 2.1
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils: 2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6a
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --with-bdeps y --alphabetical"
FEATURES="assume-digests distlocks fixpackages news protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/oss-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acpi adns akonadi alisp alsa amd64 amr amrnb amrwb archive assistant asyncns audiofile bash-completion bios bluetooth boost branding bugzilla bzip2 cairo calendar captury cdda cdinstall cdio cgraph chm cli consolekit context cracklib crypt css curl cyrillic dbus dhcp dirac djbfft djvu doc dri dts dvd dvdr dvdread dvipdfm dynamic eap-tls ebook embedded emovix encode exif extra extrafilters extras faac faad fam fame fbcondecor ffmpeg fftw firefox fits flac fluidsynth fontconfig fontforge fpx games gcrypt gd gdbm gif git glitz gnuplot gnutls gpg graphics graphviz gs gtk hal hdri hpn htmlhandbook humanities hyperestraier ical iconv icu id3tag idea idn imagemagick inotify ipv6 isdnlog ithreads jadetex java java6 javascript jbig jce jingle joystick jpeg jpeg2k jsapi kde kig-scripting kipi konqueror kpathsea ktts ladspa lame latex latex3 lcms libass libedit libffi libgcrypt libnotify libssh2 libtiger libwww lm_sensors lzo mad matroska mbrola mem-scramble mercurial mjpeg mmap mmx mmxext mng mod modplug modules mp3 mp4 mpeg mtp mudflap multilib musepack music mysql ncurses network network-cron nls nptl nptlonly nsplugin nuv odbc offensive ogg omega openal openexr opengl openmp oscar oss oss4 pam pango paste64 pcre pdf pg-intdatetime phonon pic plasma plotutils png policykit portaudio postgres ppds pppd pstricks pth publishers pulseaudio python python3 qemu qt3 qt3support qt4 qtscript quicktime rdesktop readline redland reflection rle rss rtsp ruby sasl schroedinger science sdl sdl-image semantic-desktop session slang smp sndfile sound soundtouch speex spell spl sql sqlite sqlite3 sse sse2 ssl ssse3 startup-notification stream subversion svg symlink sysfs theora threads tidy tiff toolbar truetype unicode usb utempter vamp vcd vde vdpau vlc vlm vnc vorbis vorbis-psy wavpack webkit wideband wifi wmf x264 xcb xcomposite xetex xforms xml xmlpatterns xmp xorg xscreensaver xulrunner xv xvid xvmc zip zlib zrtp" ALSA_CARDS="virtuoso" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTSBTW, what do I need to emerge to get the "ip" command?



