View previous topic :: View next topic |
Author |
Message |
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1558 Location: Adelaide/Australia
|
Posted: Sun Mar 31, 2013 2:01 am Post subject: Udev 2.0 - fairly painless upgrade from 1.97 |
|
|
Things I had to do...
- delete /etc/udev.d/rules.d/70-* as instructed in the emerge udev output
- udevadm test-builtin net_id /sys/class/net/eth0 2> /dev/null # find out what my new interface will be (used below - in my case enp2s0)
- rm /etc/init.d/net.eth0
- cd /etc/init.d/ && ln -s net.lo net.enp2s0 # (enp2s0 was output in the second step and I always get symlinks back to front)
- rc-update del /etc/init.d/net.eth0 default # (remove the old network interface from default runlevel)
- rc-update add /etc/init.d/net.enp2s0 default # (put the new network interface in the default runlevel)
- you may need to tweak /etc/conf.d/net to change your interface name, in my case, I overlooked it and things just worked because I was using DHCP anyway but for completeness, you should tweak it.
- Reboot - it's the most disruptive but easiest way to get everything up and running
FYI: I have a separate /usr filesystem inside LVM on a RAID and don't use an initrd, things work fine (so far). _________________ ...Lyall
Last edited by lyallp on Mon Apr 01, 2013 12:50 am; edited 1 time in total |
|
Back to top |
|
|
gabrielg Tux's lil' helper
Joined: 16 Nov 2012 Posts: 134
|
Posted: Sun Mar 31, 2013 10:50 am Post subject: Re: Udev 2.0 - fairly painless upgrade from 1.97 |
|
|
lyallp wrote: |
- cd /etc/init.d/ && ln -s net.enp2s0 net.lo # (enp2s0 was output in the second step)
|
Surely it is Code: | ln -s net.lo net.enp2s0 |
Mine was painless too, surprisingly, however, I didn't bother changing the interface names... not sure how it still works (I deleted /etc/udev/rules.d/70* too). I thought I'd let it play and see what happens. Done this in 2 machines and eth0 is still there. |
|
Back to top |
|
|
roarkh Tux's lil' helper
Joined: 24 May 2003 Posts: 92 Location: Bellingham, Washington
|
Posted: Sun Mar 31, 2013 1:54 pm Post subject: |
|
|
I found that I had to also remove the file 80-net-name-slot.rules from /etc/udev/rules.d to get ethernet working, other than that it was fairly painless for me as well. It may be worth adding that if you have manually configured your network devices you may need to edit /etc/conf.d/net to update the interface names.
Thanks for posting this helpful guide. |
|
Back to top |
|
|
gabrielg Tux's lil' helper
Joined: 16 Nov 2012 Posts: 134
|
Posted: Mon Apr 01, 2013 11:46 am Post subject: |
|
|
roarkh wrote: | I found that I had to also remove the file 80-net-name-slot.rules |
Well, I didn't want to do that as that file is created by the upgrade itself. If anything, it's making my life easier, unless I find a compelling reason to change the interface name, I guess I'll leave it as it is now. |
|
Back to top |
|
|
|