User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 Build Identifier: When the init scripts (net.tap0) attempts to create the tap device (mark it persistent), it succeeds; but fails to configure the IP. However, 2nd a future attempts succeeds (because the 1st attempt created the tap device already and didn't destroy it after it failed.) If the tap device is created beforehand (either manually, or from the previous failure), the script will succeed in configuring the tap device. Reproducible: Always Steps to Reproduce: Just run the net.tap0 script for the first time, or after deleting it manually (mark it nonpersistent). Scripts are using openvpn to create/destroy the tap device, and iproute2 to configure the interface. Actual Results: net.tap0 fails to configure the interface In addition, a successful stop of net.tap0 does not destroy the tap device (but it does unconfigure the interface) but not for the same reason as bug 154509 (as this is using openvpn, not tunctl). That's why the script works after the first failure - the tap device wasn't destroyed. Expected Results: net.tap0 successfully configures the interface on startup, and properly destroys the tap device on stop. Gentoo Base System version 1.12.6 Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r2 i686) ================================================================= System uname: 2.6.18-gentoo-r2 i686 AMD Athlon(tm) XP 2000+ Last Sync: Sat, 11 Nov 2006 04:30:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext acl berkdb bitmap-fonts bzip2 caps cli cracklib crypt cups dbus dlloader dri dvd dvdread elibc_glibc fam fortran gdbm gnutls gpm iconv input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog kernel_linux libg++ logrotate mmx mmxext ncurses nls nptl nptlonly pam pcre perl ppds pppd python readline reflection samba session spl sse ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xorg zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 101841 [details, diff] Bring interfaces up earlier Try this patch please
The patch doesn't work, it still can't configure the interface unless the tap device is created beforehand, and it still doesn't destroy the tap interface on stop. But now when the scripts fails to start it no longer leaves the unconfigured tap device behind (so now it ALWAYS fails when you start it).
This should be fixed in baselayout-1.13.0_alpha11. Re-open if you disagree.