How to specify "helper=x" option?
Hi,
on Fedora 19 with autofs 5.0.7-28, I want to set up auto- matic mounting and unmounting of encrypted removable devices with the basic idea: The program used as a map unlocks the device to /dev/mapper/a and then makes autofs mount the lat- ter with "helper=x", so that when unmounting, my script /sbin/umount.x is called that unmounts the file system and locks the device again.
However, with a (for testing static) map of:
| test -fstype=ext4,helper=test,ro :/dev/vg_passepartout/test
the helper option doesn't survive:
| /dev/mapper/vg_passepartout-test on /mnt/test type ext4 (ro,relatime,seclabel,data=ordered)
The "ro" shows that the options aren't ignored altogether.
Mounting manually ("mount -o helper=test/dev/vg_passepartout/test t") works:
| /dev/mapper/vg_passepartout-test on /root/t type ext4 (rw,relatime,seclabel,data=ordered,helper=test)
Are the options to mount filtered by autofs? Are there other hooks that are called on autofs unmounts and could be used for that purpose?
TIA,
Tim
Hi,
I've had the same problem. I did not use the helper option, but specified a non existent filesystem:
* -fstype=md5key :/&
Now this made my mount.md5key script is called.
But with unmountng autofs ignored my md5key filesystem.
Stef