From: Jose J. R. <jo...@gm...> - 2006-04-09 08:05:21
|
On 4/9/06, Jose J. Rodriguez <jo...@gm...> wrote: > Of course, vl-hot works too. It even coldplugs, that is, if you have a > pendrive attached on boot, it will be mounted. Of course, where the > heck the desktop icon ends up is anybody's guess, lol, as there's no > logged-in user at that point! > Guess I spoke too soon! After some careful study and testing, I found that the udev.rules file has mounting/unmounting rules for usb devices, that call /lib/udev/usbmount.sh, which conflicts with vl-hot. It turned out vl-hot was doing the mounting, but usbmount.sh was doing the unmounting, bith to different mountpoints, which is of course bad. I have modified the vl-hot rules and scripts to use the /lib/udev dir, as is now standard, instead of /etc/udev/scripts. I also made the necessary mods to get it working with this new udev version (required mods to 10-vl-hot.rules). I could modify usbmount.sh for our purposes, but vl-hot is already there and more complete (if I do say so myself, lol). The vl-hot rules are also designed to handle more than just usb devices (which means I must check udev.rules for further interference in the case of pccard or firewire drives). Anyway, I suggest we stick to vl-hot for now, meaning some stuff has to be commented out in udev.rules. So far this is limited to the usb devices in lines 24 and 26, like this: # USB storage devices #KERNEL=3D"sd?[0-9]*", ACTION=3D=3D"add", BUS=3D=3D"usb", NAME=3D"%k", SYMLINK=3D"usbmedia%e", GROUP=3D"cdrom", MODE=3D"0660", RUN+=3D"/lib/udev/usbmount.sh add /dev/%k" KERNEL=3D"ub?[0-9]*", ACTION=3D=3D"add", BUS=3D=3D"usb", NAME=3D"%k", SYMLINK=3D"usbmedia%e", GROUP=3D"cdrom", MODE=3D"0660", RUN+=3D"/lib/udev/usbmount.sh add /dev/%k" #KERNEL=3D"sd?[0-9]*", ACTION=3D=3D"remove", RUN+=3D"/lib/udev/usbmount.sh remove /dev/%k" KERNEL=3D"ub?[0-9]*", ACTION=3D=3D"remove", RUN+=3D"/lib/udev/usbmount.sh remove /dev/%k" I'll leave the ub devices to usbmount.sh, lol. I'm calling this a new branch of vl-hot, 0.3.0, and it's committed to the SF cvs already. If you want it and don't want to mess with the cvs yet, just let me know. Regards, Joe1962 |