This is just a heads up (and a fix) for people who may be having trouble getting their BaseOS InstallerChoices.xml file recognized when using InstaDMG 1.4b2.
The instructions specify to place your InstallerChoices.xml file in the same folder as the instadmg.bash file. The [b]install_system()[/b] handler in the script, however, looks for the existence of the file inside the BaseOS folder:
[code]
if [ -e ./BaseOS/InstallerChoices.xml ]
then
/bin/echo “InstallerChoices.xml file found. Applying Choices” >> $LOG_FILE
/bin/echo “” >> $LOG_FILE
/usr/sbin/installer -verbose -applyChoiceChangesXML ./InstallerChoices.xml -pkg “$CURRENT_OS_INSTALL_MOUNT/System/Installation/Packages/OSInstall.mpkg” -target $CURRENT_IMAGE_MOUNT -lang $ISO_CODE >> $LOG_FILE
[/code]To fix this bug, you can either strip out the BaseOS folder from the if line, or as I’ve done below, add the BaseOS folder into the installer command and then place your InstallerChoices.xml file in the BaseOS folder.
[code]
if [ -e ./BaseOS/InstallerChoices.xml ]
then
/bin/echo “InstallerChoices.xml file found. Applying Choices” >> $LOG_FILE
/bin/echo “” >> $LOG_FILE
/usr/sbin/installer -verbose -applyChoiceChangesXML ./BaseOS/InstallerChoices.xml -pkg “$CURRENT_OS_INSTALL_MOUNT/System/Installation/Packages/OSInstall.mpkg” -target $CURRENT_IMAGE_MOUNT -lang $ISO_CODE >> $LOG_FILE[/code]
Comments are closed