I have a few packages I made that call osascript from bash to join our active directory and set the machine name by presenting dialog boxes. When I run the packages on my regular Mac, when Installer gets to 'Running package scripts' the dialog boxes appear and the script runs normally. However, when I install the same packages through First-Boot-Package-Install the package fails to install.
The scripts aren't working becauseosascript / AppleScript requires a logged-in user and nobody is logged in when First Boot Package Install is installing packages.
I have a few packages I made that call osascript from bash to join our active directory and set the machine name by presenting dialog boxes. When I run the packages on my regular Mac, when Installer gets to 'Running package scripts' the dialog boxes appear and the script runs normally. However, when I install the same packages through First-Boot-Package-Install the package fails to install.