Quote:
Originally Posted by sgmeunier
I want to configure hal to mount to a static mount point. I've tried doing it the way that it is done in 10.1 (via a file mountpoints.fdi in /usr/share/hal/fdi/policy/95userpolicy/) but that doesn't seem to work. All my searches have come up empty this far. If anyone knows how to do this, an answer would be greatly appreciated since dynamic mount points really irritate me.
|
Could you post your copy, I am having trouble as well and I suspect it is where I enter the mount in the merge key
/usr/share/hal/fdi/policy/95userpolicy/mountpoints.fdi
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<!-- optical drives -->
<match key="block.device" string="/dev/hdc">
<match key="volume.is_disc" bool="true">
<merge key="volume.policy.should_mount" type="bool">true</media/cdrom>
<merge key="volume.policy.desired_mount_point" type="string">cdrom</media/cdrom>
</match>
</match>
</device>
</deviceinfo>
*********************
Procedure
As root, create a file with a file name of your liking and the ending .fdi in in /usr/share/hal/fdi/95userpolicy/. (For 10.0 this is /usr/share/hal/fdi/policy/95userpolicy/.) Example:
mountpoints.fdi
Edit the file with an editor of your choice, e.g. for a CD-ROM drive:
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<!-- optical drives -->
<match key="block.device" string="/dev/hdc">
<match key="volume.is_disc" bool="true">
<merge key="volume.policy.should_mount" type="bool">true</merge>
<merge key="volume.policy.desired_mount_point" type="string">cdrom</merge>
</match>
</match>
</device>
</deviceinfo>
Adapt the following lines to your system values:
<match key="block.device" string="/dev/hdc">
-> Replace /dev/hdc with the address of your CD-ROM drive.
<merge key="volume.policy.desired_mount_point" type="string">cdrom</merge>
-> Enter the mount point you desire.
After customizing the file, execute the following command as root:
rchal restart
Thanks in advance
joe