Summary: | =net-misc/netifrc-0.1 - /etc/init.d/net.lo: line 555: _exists: command not found | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | georg |
Component: | [OLD] Core system | Assignee: | netifrc Team <netifrc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | 10.0 | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Diff between old net.lo and the new net.lo
/var/db/pkg/net-misc/netifrc-0.1/CONTENTS |
Description
georg
2014-04-06 16:24:37 UTC
cat /etc/conf.d/net config_eth0="192.168.178.19/24" routes_eth0="default via 192.168.178.1" 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 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. Created attachment 375348 [details, diff]
Diff between old net.lo and the new net.lo
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. - 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) Created attachment 375404 [details]
/var/db/pkg/net-misc/netifrc-0.1/CONTENTS
- 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. 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 And you do confirm that if qcheck says all is good, the problem of _exists is gone? Yes, the problem is now gone, but if the file is changed, emerge MUST renew this file. Or am i wrong? 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. 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. 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. Really fixed in 0.2.4. |