Update to Automated Installs of Mac OS X Lion

Updated tools are here, or if you’ve cloned the Git repo, do a `git pull` to get the changes.

When the “Install Mac OS X Lion” application runs, it queries Apple’s Software Update servers and downloads a package named “MacOS_10_7_IncompatibleAppList.pkg” and copies it and an “index.sproduct” file that lists this package to the “Mac OS X Install Data” directory as part of the preparation for installing Lion.

This package updates a list of software that is incompatible with Lion by updating “English.lproj/IncompatibleApplicationsStrings.strings” and “MigrationIncompatibleApplicationsList.plist”
inside /System/Library/PrivateFrameworks/SystemMigration.framework/Versions/A/Resources/.

Updating this list of incompatible software does not seem to be vital to the installation of Lion. The index.sproduct file must exist, however, or the automated install is aborted. If you do not include the MacOS_10_7_IncompatibleAppList.pkg and index.sproduct files inside the InstallLion.pkg, the postflight script will create an “index.sproduct” file containing an empty “Packages” array.

Still, it’s probably a good idea to include the current version of the MacOS_10_7_IncompatibleAppList.pkg in your InstallLion.pkg if possible.

I’ve provided a tool to help you download the current version of the incompatible app list package. It’s named “getIncompatibleAppListPkg”. It will download the MacOS_10_7_IncompatibleAppList.pkg and create an index.sproduct file, saving both in the current directory. They must be copied to the InstallLion.pkg/Contents/Resources/Mac OS X Install Data/ directory.

Here’s a sample execution of the tool:

% ./getIncompatibleAppListPkg
Downloading http://swcdn.apple.com/content/downloads/02/12/041-1997/jPTmxRrfybSnP8NTRfwggvDn4F9byWBgvd/MacOS_10_7_IncompatibleAppList.pkg...
Writing index.sproduct...
Done.

You’d find MacOS_10_7_IncompatibleAppList.pkg and index.sproduct in your current working directory; you would then copy them to InstallLion.pkg/Contents/Resources/Mac OS X Install Data/

(Note: I found also that I could not add arbitrary packages to the Packages array of index.sproduct; the OS X Installer skipped any packages that were unsigned. Therefore the index.sproduct file is not easily used to install additional arbitrary packages. I was unwilling to go through the effort to convert my additional packages to “flat” packages and sign them to do further testing.)

Advertisement
Explore posts in the same categories: Deployment, Lion, OS X

7 Comments on “Update to Automated Installs of Mac OS X Lion”


  1. Wow man just found your blog, tons of cool stuff on here. have you done much with apples profile manager server yet?

  2. Tan Bulut Says:

    It reaaly is a perfect blog for mac users. Lots of useful info. Thanks!

  3. Holger Bartels Says:

    Great Tool! Does it work with 10.7.2? I always get the error :

    Input disk image: /Users/hbartel2/Downloads/20-10-11/packages/InstallESD.dmg

    OSInstall.collection:
    (It’s normal for OSInstall.mpkg to be listed twice)
    ——————————————————————

    /System/Installation/Packages/OSInstall.mpkg
    /System/Installation/Packages/OSInstall.mpkg
    /System/Installation/Packages/JavaForMacOSX10.7.pkg
    /System/Installation/Packages/MacOSXUpd10.7.2.pkg

    ——————————————————————
    Output disk image: /Users/Shared/InstallESD.dmg

    Build custom installation disk image? [y/n] y
    Mounting /Users/hbartel2/Downloads/20-10-11/packages/InstallESD.dmg…
    Copying additional packages to /private/tmp/dmg.RwELfy/Packages
    Copying flat package /Users/hbartel2/Downloads/20-10-11/packages/JavaForMacOSX10.7.pkg
    Copying flat package /Users/hbartel2/Downloads/20-10-11/packages/MacOSXUpd10.7.2.pkg
    Error [Errno 28] No space left on device copying packages to diskimage

    With 10.7.1it works like charme.
    Thanks for help!

    Cheers,
    Holger

  4. GregN Says:

    I just tried it with the 10.7.2 InstallESD.dmg and it worked fine. I’d think you’d always want to use the updated InstallESD.dmg, and not try to add in a combo update.

    Are you sure you just didn’t run out of space on the volume you were using?

  5. Ryan Taylor Says:

    I used the 10.7 InstallESD and received the same error. I tried to add the 10.7.3 combo updater. I have ~120gb free space on the volume.

  6. Ryan Taylor Says:

    Following up to my previous post, if I remove the 10.7.3 combo updater package, it works fine.

    • GregN Says:

      Again, I recommend always downloading the current Install OS X Lion.app and getting the current InstallESD.dmg (containing the latest rev of Lion) rather than using a older version of Lion and trying to add the combo updater.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

Join 51 other followers