Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506966 - =net-misc/netifrc-0.1 - /etc/init.d/net.lo: line 555: _exists: command not found
Summary: =net-misc/netifrc-0.1 - /etc/init.d/net.lo: line 555: _exists: command not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-06 16:24 UTC by georg
Modified: 2014-07-16 19:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Diff between old net.lo and the new net.lo (diff.patch,1.14 KB, patch)
2014-04-20 07:43 UTC, georg
Details | Diff
/var/db/pkg/net-misc/netifrc-0.1/CONTENTS (CONTENTS,2.84 KB, text/plain)
2014-04-21 06:03 UTC, georg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description georg 2014-04-06 16:24:37 UTC
I get the following output:

/etc/init.d/net.lo start
 * Bringing up interface lo
/etc/init.d/net.lo: line 555: _exists: command not found
 *   ERROR: interface lo does not exist
 *   Ensure that you have loaded the correct kernel module for your hardware
 * ERROR: net.lo failed to start

I use the follwing configuration:
- Kernel 3.12.16
- eudev =sys-fs/eudev-1.3
- sys-utils/dracut-037
- /proc/cmdline = "BOOT_IMAGE=/vmlinuz-3.12.16-slim root=/dev/mapper/desktop-gentoo ro net.ifnames=0 rd.lvm=1 rd.auto=1 quiet"

I added the emerge --info output about netifrc at the attachments.

At the start of the PC it doesn't start the network. All network services which depend uppon the network target at openrc cant start like ssh.

I bring up the network by
ifonfig eth0 192.168.178.19/24
route add default gw 192.168.178.1

This is how i currently write this bug report.



Reproducible: Always

Actual Results:  
/etc/init.d/net.lo start
 * Bringing up interface lo
/etc/init.d/net.lo: line 555: _exists: command not found
 *   ERROR: interface lo does not exist
 *   Ensure that you have loaded the correct kernel module for your hardware
 * ERROR: net.lo failed to start

Expected Results:  
/etc/init.d/net.lo start
 * Bringing up interface lo

net.lo and eth0 should get startet.

Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.17, 3.12.16-slim x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.12.16-slim-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.2
KiB Mem:    16393244 total,  12040652 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of tree: Sun, 06 Apr 2014 10:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -mcx16 -mpopcnt -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /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"
CXXFLAGS="-march=amdfam10 -mcx16 -mpopcnt -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv icu ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg system-icu tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="lvm crypt" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64 i386 arm" QEMU_USER_TARGETS="x86_64 i386 arm" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-misc/netifrc-0.1 was built with the following:
USE=""
Comment 1 georg 2014-04-06 16:25:25 UTC
cat /etc/conf.d/net

config_eth0="192.168.178.19/24"
routes_eth0="default via 192.168.178.1"
Comment 2 georg 2014-04-06 16:33:21 UTC
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx0 port B) (rev 02)
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx0 port B)
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD/ATI] RD990 I/O Memory Management Unit (IOMMU)
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] RD990 I/O Memory Management Unit (IOMMU)
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port B)
	Kernel driver in use: pcieport
00:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port F)
	Kernel driver in use: pcieport
00:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port H)
	Kernel driver in use: pcieport
00:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx1 port A)
	Kernel driver in use: pcieport
00:0b.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (NB-SB link)
	Kernel driver in use: pcieport
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
	Subsystem: ASUSTeK Computer Inc. Device 84dd
	Kernel driver in use: ahci
	Kernel modules: ahci
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
	Kernel driver in use: ohci-pci
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Kernel driver in use: ehci-pci
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
	Kernel driver in use: ohci-pci
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Kernel driver in use: ehci-pci
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
	Kernel driver in use: ohci-pci
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
	Kernel driver in use: pcieport
00:15.1 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 1)
	Kernel driver in use: pcieport
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
	Kernel driver in use: ohci-pci
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Kernel driver in use: ehci-pci
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 3
	Kernel driver in use: k10temp
	Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 4
	Kernel driver in use: fam15h_power
	Kernel modules: fam15h_power
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 5
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Juniper XT [Radeon HD 5770]
	Subsystem: ASUSTeK Computer Inc. Device 0344
	Kernel driver in use: radeon
	Kernel modules: radeon
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Juniper HDMI Audio [Radeon HD 5700 Series]
	Subsystem: ASUSTeK Computer Inc. Device aa58
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
02:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
	Subsystem: ASUSTeK Computer Inc. P8B WS Motherboard
	Kernel driver in use: xhci_hcd
03:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
	Subsystem: ASUSTeK Computer Inc. P8B WS Motherboard
	Kernel driver in use: xhci_hcd
04:00.0 USB controller: MosChip Semiconductor Technology Ltd. MCS9990 PCIe to 4‐Port USB 2.0 Host Controller
	Subsystem: Device a000:4000
	Kernel driver in use: ohci-pci
04:00.1 USB controller: MosChip Semiconductor Technology Ltd. MCS9990 PCIe to 4‐Port USB 2.0 Host Controller
	Subsystem: Device a000:4000
	Kernel driver in use: ehci-pci
04:00.2 USB controller: MosChip Semiconductor Technology Ltd. MCS9990 PCIe to 4‐Port USB 2.0 Host Controller
	Subsystem: Device a000:4000
	Kernel driver in use: ohci-pci
04:00.3 USB controller: MosChip Semiconductor Technology Ltd. MCS9990 PCIe to 4‐Port USB 2.0 Host Controller
	Subsystem: Device a000:4000
	Kernel driver in use: ehci-pci
04:00.4 USB controller: MosChip Semiconductor Technology Ltd. MCS9990 PCIe to 4‐Port USB 2.0 Host Controller
	Subsystem: Device a000:4000
	Kernel driver in use: ohci-pci
04:00.5 USB controller: MosChip Semiconductor Technology Ltd. MCS9990 PCIe to 4‐Port USB 2.0 Host Controller
	Subsystem: Device a000:4000
	Kernel driver in use: ehci-pci
04:00.6 USB controller: MosChip Semiconductor Technology Ltd. MCS9990 PCIe to 4‐Port USB 2.0 Host Controller
	Subsystem: Device a000:4000
	Kernel driver in use: ohci-pci
04:00.7 USB controller: MosChip Semiconductor Technology Ltd. MCS9990 PCIe to 4‐Port USB 2.0 Host Controller
	Subsystem: Device a000:4000
	Kernel driver in use: ehci-pci
05:00.0 RAID bus controller: 3ware Inc 9650SE SATA-II RAID PCIe (rev 01)
	Subsystem: 3ware Inc 9650SE SATA-II RAID PCIe
	Kernel driver in use: 3w-9xxx
06:05.0 Multimedia audio controller: Creative Labs CA0106 Soundblaster
	Subsystem: Creative Labs SB0570 [SB Audigy SE]
	Kernel driver in use: snd_ca0106
	Kernel modules: snd_ca0106
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
	Subsystem: ASUSTeK Computer Inc. P8P67 and other motherboards
	Kernel driver in use: r8169
	Kernel modules: r8169
Comment 3 georg 2014-04-20 06:54:24 UTC
My workarount for this problem is a scrit in /etc/local.d/net-eth0.start

<code>
# it's the job of netifrc, but its broken
ifconfig eth0 192.168.178.19/24
route add default gw 192.168.178.1
</code>

I tried to rebuild my whole system, but nothing did work. I reinstalled gentoo on a second partition and it did work there, but i am not sure, why this installation is broken. I did use the exact same kernel and kernel-config. I copied the kernel and the modules.
Comment 4 georg 2014-04-20 07:43:03 UTC
Created attachment 375348 [details, diff]
Diff between old net.lo and the new net.lo
Comment 5 georg 2014-04-20 07:44:34 UTC
I made the diff between the new isntallations net.lo and the "old" net.lo and found that attached difference. I did copy the new net.lo to the installation with the problem and it did fix the issue. 

But there is a problem in the emerge script ov netifrc. It did not renew the /etc/init.d/net.lo file.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-04-20 19:45:23 UTC
- Did you ever have custom modifications to your net.lo?
- what did you do about the etc-update warnings on net.lo if any?
- please attach /var/db/pkg/net-misc/netifrc-0.1/CONTENTS
- output of "qcheck -v netifrc" (part of portage-utils package)
Comment 7 georg 2014-04-21 06:03:32 UTC
Created attachment 375404 [details]
/var/db/pkg/net-misc/netifrc-0.1/CONTENTS
Comment 8 georg 2014-04-21 06:05:27 UTC
- No, i did never change this file manually /except on this case to find the root cause)
- I did not recognize any question about net.lo on an update process. I use dispatch-conf

qcheck -v netifrc
Checking net-misc/netifrc-0.1 ...
 MTIME: /etc/init.d/net.lo (recorded '1396800528u' != actual '1397979696u')
  * 45 out of 46 files are good

It seems that net.lo is damaged. I dont think its a harddiskfailure, because the system runs on a 3ware hardware raid5 array.
Comment 9 georg 2014-04-21 06:16:38 UTC
Now i did remerge netifrc and the qcheck says all is fine.

I did change the file manually to change its content, qcheck says it's md5sum is different. After a rebuild second rebuild of it, the md5sum is still broken.

qcheck -v netifrc
Checking net-misc/netifrc-0.1 ...
 MD5-DIGEST: /etc/init.d/net.lo (recorded 'be4d4227cd5c7647493edae9131f1798' != actual '6c6fb12a0e429a1288872143812b1d6d')
  * 45 out of 46 files are good

I revert my change 
qcheck -v netifrc
Checking net-misc/netifrc-0.1 ...
 MTIME: /etc/init.d/net.lo (recorded '1398060868u' != actual '1398060951u')
  * 45 out of 46 files are good


and rebuild netifrc and everything is fine again.

qcheck -v netifrc
Checking net-misc/netifrc-0.1 ...
  * 46 out of 46 files are good
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-04-21 17:42:01 UTC
And you do confirm that if qcheck says all is good, the problem of _exists is gone?
Comment 11 georg 2014-04-21 17:47:28 UTC
Yes, the problem is now gone, but if the file is changed, emerge MUST renew this file. Or am i wrong?
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-04-21 17:51:26 UTC
I can't reproduce the base problem of the new file not being installed.

so what I think, is somehow your old copy wasn't updated by previous emerges, possibly to a lurking local change and you missed the etc-update notifications.
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-07-16 18:21:51 UTC
Ok, this bit me on a system now too; and I know that netifrc is entirely valid and present.

It's something not right in _load_modules, debugging now.
Comment 14 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-07-16 18:58:11 UTC
ok, the problem is is _gen_module_list.

If it caches an old version, that does NOT have the iproute2 module, then it nevers gets sourced, and the _exists function doesn't get imported.

In our case, this was triggered by the clock on the system being off, and the $MODULESLIST file had a time 2 hours in the future, so it wasn't causing recaching.

I'm going to add a check that also considers it bad if the filetime is in the future.
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-07-16 19:21:54 UTC
Really fixed in 0.2.4.