No longer possible to script a volume mount
| Originator: | peter | ||
| Number: | rdar://28840852 | Date Originated: | 19-Oct-2016 02:18 PM |
| Status: | Duplicate of 27732430 | Resolved: | |
| Product: | macOS | Product Version: | Sierra |
| Classification: | Painful | Reproducible: | Always |
In Sierra, it is no longer possible to script a volume mount. This makes it impossible to do things like scripted backups/rsyncs. Steps to Reproduce: open -g afp://whatever Pre-Sierra, works and mounts the volume using the stored Keychain password. Sierra, pops up the alert asking to OK the mount. sudo open -g afp://whatever does not work either. It might be possible to do sudo mkdir /Volumes/Whatever, mount_afp whatever, but it seems difficult to ensure it behaves in the same manner as mounting the volume. Expected Results: I expect nothing else, but I'd like it if Apple quit screwing up automation.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!