Re: systemd - standard place to run stuff after the network is up?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/17/2011 10:20 AM, Bruno Wolff III wrote:
> I want to try to modprobe netconsole during boot, but it needs to happen
> after the network is up. Is there any standard place (rc.local and
> modules-load seem to happen too early) to do this?
>
> I filed https://bugzilla.redhat.com/show_bug.cgi?id=746481 against systemd,
> but it has been closed notabug. So I am looking for simple alternatives
> to do this. If there aren't any, then it looks like I need to make a custom
> service that waits for networking to be up.

FWIW, I have been struggling with this for awhile.  And now, in what 
seems like "magic," it is working fine in rawhide but not in F16 (tho it 
does in maybe 1 in 20 boots).  I followed the procedure in 
https://fedoraproject.org/wiki/Netconsole.  Since the e-net card is 
renamed to a local bus name (p37p1 in my case), specifying eth0 in the 
netconsole parms wasn't working and systemd was reporting an error and 
specifying p37p1 wasn't working since the device was eth0 at the time. 
Since updating systemd to systemd-37-1.fc17.x86_64, specifying eth0 now 
works nicely to start netconsole logging well before NetworkManager does 
its thing and I still get a eth0 network using NetworkManager.

Before the systemd update, I would see the following in dmesg:

...
[   12.732929] netconsole: local port 4444
[   12.734575] netconsole: local IP 192.168.0.10
[   12.735906] netconsole: interface 'eth0'
[   12.737225] netconsole: remote port 6666
[   12.738535] netconsole: remote IP 192.168.0.11
[   12.739846] netconsole: remote ethernet address 00:1d:60:e5:ee:55
[   12.741201] netconsole: eth0 doesn't exist, aborting.
[   12.742528] netconsole: cleaning up
[   12.747777] mtp-probe[909]: checking bus 8, device 4: 
"/sys/devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2.4"
[   12.749445] mtp-probe[872]: checking bus 2, device 2: 
"/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-5"
[   12.751298] mtp-probe[912]: checking bus 8, device 3: 
"/sys/devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2.1"
[   12.752693] fedora-loadmodules[747]: FATAL: Error inserting 
netconsole 
(/lib/modules/3.1.0-0.rc8.git0.1.fc16.x86_64/kernel/drivers/net/netconsole.ko): 
No such device
[   12.754183] systemd[1]: fedora-loadmodules.service: main process 
exited, code=exited, status=1
[   12.773096] systemd[1]: Unit fedora-loadmodules.service entered 
failed state.
...


-- 
Regards,
OldFart

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux