AFP548 Changing the world one server at a time.

InstaDMG Script Suggestions

Home › Forums › Software › InstaDMG › InstaDMG Script Suggestions

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #371028
    Patrick Fergus
    Participant

    One suggestion and two contributions:

    Suggestion: Make sure the whatis database is up to date. Without it, InstaDMG fails with the following error:

    /Volumes/Data/instadmg-rmlcll-revision.bash: line 369: +%y-%m-%d: command not found
    /Volumes/Data/instadmg-rmlcll-revision.bash: line 424: Error Encountered in Defining Variables and command sets: command not found

    #1. Including Installer Choice Changes support in InstaDMG

    Added before the “END USER CONFIGURATION”:

    # Use OS Choice Changes - values 1=yes, 0=no
    	OS_USE_CHOICE_CHANGES=1
    # OS Choice Changes XML file location
    	OS_CHOICE_CHANGES_XML_FILE=$WORKING_VOLUME/Leopard_Choices.xml

    Added inside install_system_new(), before “# for more detailed logs”:

    # Assemble the Choice Changes
    	if [ $OS_USE_CHOICE_CHANGES -eq 1 ]; then
    		CHOICE_CHANGES="-applyChoiceChangesXML $OS_CHOICE_CHANGES_XML_FILE"
    	else
    		CHOICE_CHANGES=""
    	fi

    Added inside install_system_new(), in both the verbose and non-verbose portions, after “-target $CURRENT_IMAGE_MOUNT \”:

    $CHOICE_CHANGES \

    #2. Logfile Typo

    From:

    $ECHO "Error Encountered in Defining Variables and command sets" >> $LOGFILE

    to:

    $ECHO "Error Encountered in Defining Variables and command sets" >> $LOG_FILE

    Thanks!

    – Patrick

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.