udev_db must be in a ramfs
So, I ran a few tests on location of the tdb database (config file:udev_db variable). And was only able to put in a ramfs location for it.
So my main question is: Is this a bug or a feature? If it's a feature, I'll just submit a patch for the documentation to prevent people from trying to put it on a non-ramfs area. If it's a bug, then I would work on fixing it. :)
-Ken
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 7 lines · Ken Brush
So, I ran a few tests on location of the tdb database (config file:
udev_dbvariable). And was only able to put in a ramfs location for it.So my main question is: Is this a bug or a feature? If it's a feature, I'll just submit a patch for the documentation to prevent people from trying to put it on a non-ramfs area. If it's a bug, then I would work on fixing it. :)
No, it's neither a bug nor a feature. :)
I'm able to place the db wherever I want on the filesystem. udev doesn't know anything about ramfs, it works on any filesytem.
What is your problem exactly?
thanks,
Kay
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 10 lines · Ken Brush
Quoted 8 lines
So, I ran a few tests on location of the tdb database (config file:
udev_dbvariable). And was only able to put in a ramfs location for it.So my main question is: Is this a bug or a feature? If it's a feature, I'll just submit a patch for the documentation to prevent people from trying to put it on a non-ramfs area. If it's a bug, then I would work on
fixing it. :)
Quoted 5 lines
No, it's neither a bug nor a feature. :)
I'm able to place the db wherever I want on the filesystem. udev doesn't know anything about ramfs, it works on any filesytem.What is your problem exactly?
I did the following:
udev_db = /tmp/.udev.tdb
And on boot it couldn't find the disklabel, no /dev/hda1 entry, and no .udev.tdb db.
So, I tried another place /foo.
Same thing
Until I placed a mount -t ramfs none /foo entry in the udev startup script.
So, thinking about it now. /tmp could've been a problem with the db being lost when /tmp is mounted (i.e. it was created and then a mount over the top of it.)
Though, if that was the case I wonder why /foo wouldn't work. (unless / is ro at that point in time.)
Hrm. I'll explore this more.
-Ken
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Pardon the bad form of replying to myself.
Quoted 5 lines · I wrote:
Though, if that was the case I wonder why /foo wouldn't work. (unless / is ro at that point in time.)
Hrm. I'll explore this more.
So I ran a quick test, and sure enough it had to do with / being read-only at the point in time I generate the db. So we may wish to modify the HOWTO-udev_for_dev to point that out to the less system-aware amongst us.
-Ken
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 8 lines · Ken Brush
So, I tried another place /foo.
Same thingUntil I placed a mount -t ramfs none /foo entry in the udev startup script.
So, thinking about it now. /tmp could've been a problem with the db being lost when /tmp is mounted (i.e. it was created and then a mount over the top of it.)
Note that you have to use ramfs for udev_root anyway if you want udev to work properly, so the database by default ends up in the correct place as long as udev_db points to a file below udev_root.
Arnd <><
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel