Script result: installer: Error - the package path specified was invalid:

TSOAFTVPPC
Contributor

We have been deploying the sdl license adobe pkgs by attaching local USB storage then running a script post imaging. 

#!/bin/sh

/usr/sbin/installer -pkg /Volumes/Deploy/Fa21BaseFTVM1Install.pkg -target /

Not using imaging now but in testing this with jamf remote doesn't work:


Script result: installer: Error - the package path specified was invalid: '/Volumes/Deploy/Fa21BaseFTVM1Install.pkg'

if running the command locally via terminal it works. Any ideas? Do remotely invoked commands not have access to removable storage?

5 REPLIES 5

junjishimazaki
Valued Contributor

Since all policies from Jamf run as root, it's possible that the script can't be run as root. So, to test this theory out, run the script as the user

To run as a user:

#Get logged in user

curUser="`stat -f%Su /dev/console`"

#run script as user

sudo -u $curUser ENTERYOURSCRIPTHERE

Will try this. However noticed this error only happens on our big sur M1 systems. wondering if it might be an enhanced security setting.

 

junjishimazaki
Valued Contributor

Did you install Rosetta? If I remember correctly, Rosetta is required to install packages

Thanks yes rosetta was installed

TSOAFTVPPC
Contributor

Turns out that even after enrollment sshd-keygen-wrapper did not have full disk access.

Changed privacy settings to enable