Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallels desktop lookup via mdfind fails during backup operations #75

Open
dottedmag opened this issue Dec 31, 2017 · 2 comments
Open

Comments

@dottedmag
Copy link

dottedmag commented Dec 31, 2017

If a backup operation is in progress (so the backup snapshot or backup disk are mounted), then packer build for Parallels fails, as mdfind kMDItemCFBundleIdentifier '==' com.parallels.desktop.console, which is used to find location of Parallels, returns more than one result. See the log in gist for the failure during SuperDuper! backup.

Can be fixed by splitting mdfind output by line and trying the locations until one succeeds in order of likelihood (e.g. starting with /Applications, then /Volumes, and filtering out /private).

Packer 1.1.3, host MacOS 10.13

Log: https://gist.github.com/dottedmag/ab4f903f99e3fc3e065a084426c8f85e

@rickard-von-essen
Copy link
Contributor

I haven't noticed this but this sounds correct. If you want to create a PR please go ahead, otherwise I'll try to look at it soon.

@nywilken nywilken transferred this issue from hashicorp/packer Apr 12, 2023
@deric4
Copy link

deric4 commented Apr 13, 2023

duplicate #63 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants