LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-21-2012, 05:58 AM   #16
dolphin77
Member
 
Registered: May 2009
Location: Odesa, Ukraine
Distribution: Slackware
Posts: 206

Rep: Reputation: 60

it has a lot of changes. Mainly:
kmod instead of module-init-tools, util-linux

location of binaries also changed, so you need either to edit the startup scripts, or symlink.

Some time ago I did fully functional udev-178.

If you still interested, look here if you are interested: ftp://vt.dyndns-at-home.com/linux/slackware/new_udev/

EDIT: PS after Robby's comment. If you would wish to try out some of the above, be prepared that some major startup scripts (like rc.S) has to be modified, and additional tmpfs mount points has to be added in fstab (for /run, dev, and something else, unfortunately do not remember exactly what I modified, but need to check documentation if you wish to try it).

Last edited by dolphin77; 03-22-2012 at 06:32 AM. Reason: Forgot to mention
 
Old 03-21-2012, 07:59 PM   #17
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
You're looking at a bunch of changes if you want to run latest udev. These are not in any particular order:
* You need a /run directory that is a tmpfs, and it needs to be available in *early* boot. This means that it will have to be added to the aaa_base package, and rc.S will need to mount it before much else happens, but it also has to be mounted inside initrd in case the system is coming up from there, which means the rc.S logic has to account for that.

* If you're using an initrd, you'll have to set 'OPTIONS+="db_persist"' for dm devices inside the initrd, which means writing that into a udev rules file if raid and/or lvm support are included in the initrd. Otherwise, the state info for those will not persist from the initrd to the real system. While you're messing with the initrd, you may as well use the new method in udevadm to kill udevd inside the initrd, and go ahead and start udevd before loading modules (it shouldn't be necessary to load them manually at all anyway) -- that will solve the problem with firmware not loading properly from an initrd. While you're messing with that, you might find the post here on LQ where ecd102 provided a patch to include any needed firmware in the initrd Also, somewhere around line 270 of src/mkinitrd/init, make this change:
Code:
      -RESUMEDEV=$(ls -l $RESUMEDEV | awk '{ print $NF }')
      +RESUMEDEV=$(readlink -f $RESUMEDEV)
* You'll need to install kmod, since new udev requires that. Whether you want to replace module-init-tools or not is your call, and that decision will require you to adjust the build process accordingly. Seems fine as a replacement here, for what that's worth.


* While you're messing with udev, you may as well edit the usb-controller file in /etc/modprobe.d to use the new softdep syntax instead of the deprecated 'install' stuff. Also, in rc.udev, you can kill the creation of /dev/root symlink; nothing uses it these days, and it was an ugly hack anyway.

While I'm talking about early boot stuff, if you happen to use root on lvm, you might consider these changes I've made locally (yes, I'm reading from my notes here), but how to do it will be left as an exercise for the reader:
Code:
* lvm2
  - use /run instead of /var/run ; this eliminates some warnings about lock
    failures on boot with fully encrypted setup (since /run/lock/lvm is
    writable already, while /var/lock/lvm isn't (since /var is part of /,
    which is still ro, or /var is separate filesystem, which isn't mounted
    yet))
In case it's not clear, all of this is working just fine here, but the changes are (as you can see) somewhat intrusive. Sadly, there are even more intrusive changes needed by other upgrades that aren't strictly necessary for the udev update.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Have to alter fstab when upgrading to udev? rabalder321 Linux - Newbie 2 01-12-2006 07:53 PM
Upgrading to unstable broke udev Ephracis Debian 5 10-17-2005 04:28 AM
Upgrading to 2.6 Kernel, ALSA, Udev Kenji Miyamoto Slackware 8 08-27-2005 05:24 PM
Kernel Upgrading, dev, udev, etc... Makaelin Slackware 2 02-11-2005 05:58 PM
upgrading to linux 2.6.5 with hotplugging and udev behmjose Linux From Scratch 6 05-05-2004 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration