|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
My lab recently transitioned from Ubuntu over to Mac OS X Server. On our old Ubuntu sever we used automount to mount some ISO images of conference proceedings. That way we could browse the contents of the proceedings without actually having to download the ISO and mount it on our own machine.
Luke, you got me on the right track. Thanks! I was so convinced that I should be able to do this with an indirect map that I hesitated looking at the executable map option. As far as I can tell mount will not play nicely with ISO images, so there isn't a way to use an indirect map. This is what i ended up doing:
/var/foo/conferences /etc/auto_conferences -nobrowse
/usr/bin/logger -p local0.notice "automount: attempting to mount $image_path"
if [ -f $image_path ]; then
device=`/usr/bin/hdid -nomount $image_path`
/usr/bin/logger -p local0.notice "automount: mounting $image_path using device $device"
echo -e "$MOUNT_OPTS\t:$device"
/usr/bin/logger -p local0.notice "automount: could not mount $image_path"
This may not be an optimal solution, but it serves my purposes (trusted users only) well enough. It looks in the IMAGE_DIR to see if there is an ISO image that matches the key passed in. If an ISO exists it uses hdid to attach the image to a device and the device name is stored in device. MOUNT_OPTS and device are used to create an entry for the executable map. I hope this helps someone else down the line. Thanks to everyone that answered.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macos-x-server mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.