Forum Replies Created

Viewing 9 posts - 46 through 54 (of 54 total)
  • Author
    Posts
  • in reply to: Postflight script doesn’t run? #375033
    typofonic
    Participant

    Hi thespider,

    Thanks for your reply!

    [QUOTE][u]Quote by: thespider[/u][p]I would guess that it’s running the commands on the local system, not the Image. You have to preface the commands to point to the InstaDMG Image. Use a $3 to specify the image.

    See this thread:
    https://www.afp548.com/forum/viewtopic.php?forum=45&showtopic=22379&highlight=$3%5B/QUOTE%5D


    Ok, so I guess I change it from this:

    defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup 1
    defaults write /Library/Preferences/com.apple.TimeMachine AutoBackup 0

    to this:

    defaults write $3/com.apple.TimeMachine DoNotOfferNewDisksForBackup 1
    defaults write $3/Library/Preferences/com.apple.TimeMachine AutoBackup 0


    But what do I do with a line like this:
    systemsetup -setcomputername typofonic-com

    As far as I’ve understood, from the post you link to a command like the one above can only be run after startup? See below

    [QUOTE]
    OR, run the script at first boot of the image with a launchd item.[/p][/QUOTE]

    How do I exactly do that? It seems that it would be much easier to run all the scripts on first boot of the image so they don’t have to be modified?

    Thanks

    Anders, Denmark

    in reply to: Setting default language #374999
    typofonic
    Participant

    Hi Trondah,

    I’d be very interested in seeing your config as well.

    – Anders, Denmark

    in reply to: Set timezone and NTP #374998
    typofonic
    Participant

    Hi arekdreyer,

    Could you post your script? I have some problems making it check “Use Network Timeserver” in the preferences using a postfight script.

    – Anders

    typofonic
    Participant

    19:47:19 ######InstaDMG build initiated######
    19:47:19 ######Mounting Mac OS X installer image######
    Mounting the main OS Installer Disk from: ./InstallerFiles/BaseOS/Mac OS X Install DVD.dmg at: /Volumes/work//instaDMGMount.nOxitj
    Mac OS X installer image mounted
    19:47:23 ######Creating intermediary disk image######
    created: /Volumes/work//instaDMGTemp.wQNthu.sparseimage
    Image mounted at /dev/disk2
    Running on Intel Platform: Setting format to GPT
    Started erase on disk disk2
    Creating partition map
    Formatting disk2s2 as Mac OS Extended (Journaled) with name 125516B8-FB9E-4960-983E-F31D1FB41426

    Finished erase on disk disk2
    Finished partitioning on disk disk2
    /dev/disk2 GUID_partition_scheme
    /dev/disk2s1 EFI
    /dev/disk2s2 Apple_HFS /Volumes/work//instaDMGMount.kpW1p3
    Intimediary image creation complete
    19:47:49 ######Beginning Installation from /Volumes/work//instaDMGMount.nOxitj######
    I’m running on Leopard or later. Checking for InstallerChoices.xml file
    InstallerChoices.xml file found. Applying Choices
    installer: Package name is Mac OS X
    installer: choices changes file ‘./InstallerFiles/BaseOS/InstallerChoices.xml’ applied
    installer: Installing at base path /Volumes/work//instaDMGMount.kpW1p3
    installer: Preparing for installation…..
    installer: Preparing the Disk…..
    installer: Preparing Target Volume
    #
    installer: Preparing Mac OS X…..
    installer: Running Installer actions
    installer:
    installer: Installing BaseSystem…..
    installer:
    installer: Configuring Installation
    installer: The install failed (The Installer encountered an unknown error that failed the install. Contact the software manufacturer for assistance.)
    Base OS installed
    Compacting and saving cached image to: ./Caches/BaseImageCache/2F403AAB:99fedc6f572285e5c3f889163e46e281f2c590d4.dmg
    “disk2” unmounted.
    “disk2” ejected.
    Remounting the image with a shadow file (/Volumes/work//instaDMGTemp.wQNthu.sparseimage)
    /dev/disk2 GUID_partition_scheme
    /dev/disk2s1 EFI
    /dev/disk2s2 Apple_HFS /Volumes/work//instaDMGMount.kpW1p3
    19:48:04 ######Beginning Update Installs from ./InstallerFiles/BaseUpdates######
    Installing MacOSXUpdCombo10.5.4.pkg from ./InstallerFiles/BaseUpdates/1
    installer: Package name is Mac OS X Update Combined
    installer: Installing at base path /Volumes/work//instaDMGMount.kpW1p3
    installer: Preparing for installation…..
    installer: Preparing the Disk…..
    installer: Preparing Target Volume
    #
    installer: Preparing Mac OS X Update Combined…..
    installer: Running Installer actions
    installer:
    installer: Installing MacOSXUpdCombo10.5.4…..
    installer:
    installer: Configuring Installation
    installer: The install failed (The Installer encountered an unknown error that failed the install. Contact the software manufacturer for assistance.)
    —-CUT THE REST OF THE PACKAGES—-
    19:50:04 ######Correcting some generic installer errors######
    Correcting symlinks that point off the disk
    Closing programs that have opened files on the disk

    Does this give any hints?

    typofonic
    Participant

    Any updates on this? 🙂

    in reply to: CS3 Repacker In Progress #374080
    typofonic
    Participant

    Mosen,

    That’s great to hear. That could be really useful for a of people!

    Please keep us updated on it!

    typofonic
    Participant

    Hmm…I ran the newest svn version you made yesterday and it broke my main system. I got an “Unable to login because an error occured” with all my users on my main startup partition. It renamed my “work” partition to instaDMG and installed all the system files on it. Anyway it broke something major on my system – but I guess it’s about time I reinstalled anyway. But I’m back on track again now and I haven’t lost any stuff. I hope there aren’t too many “rm -rf” commands in the instaDMG script 😉

    Don’t know what happened. Maybe something about the paths.

    Also I’m not sure what you meant regarding the volume format. I’m using Jounaled Case Insensitive HFS+ volumes – the default HFS+ Journaled format of OS X. I assume this should work?

    But it still doesn’t work. Any ideas?

    typofonic
    Participant

    Ok, I tried the new version but unfortunately this version came up with errors. I got the following output:

    ———
    “typofonic-com:InstaDMG_1.4b3 anni1105$ sudo ./instadmg.bash -t /Volumes/work/
    19:47:19 ######InstaDMG build initiated######
    19:47:19 ######Mounting Mac OS X installer image######
    Mounting the main OS Installer Disk from: ./InstallerFiles/BaseOS/Mac OS X Install DVD.dmg at: /Volumes/work//instaDMGMount.nOxitj
    Mac OS X installer image mounted
    19:47:23 ######Creating intermediary disk image######
    Image mounted at /dev/disk2
    Running on Intel Platform: Setting format to GPT
    Intimediary image creation complete
    19:47:49 ######Beginning Installation from /Volumes/work//instaDMGMount.nOxitj######
    I’m running on Leopard or later. Checking for InstallerChoices.xml file
    InstallerChoices.xml file found. Applying Choices
    2008-09-06 19:47:54.369 installer[40979:3f13] *** Assertion failure in -[IFInstallPlan setValue:forAttribute:], /SourceCache/Install/Install-384/source/engine/helpers/IFInstallPlan.m:302
    Installing BaseSystem…..
    Base OS installed
    Compacting and saving cached image to: ./Caches/BaseImageCache/2F403AAB:99fedc6f572285e5c3f889163e46e281f2c590d4.dmg
    Remounting the image with a shadow file (/Volumes/work//instaDMGTemp.wQNthu.sparseimage)
    19:48:04 ######Beginning Update Installs from ./InstallerFiles/BaseUpdates######
    Installing MacOSXUpdCombo10.5.4.pkg from ./InstallerFiles/BaseUpdates/1
    2008-09-06 19:48:08.311 installer[41187:3e13] *** Assertion failure in -[IFInstallPlan setValue:forAttribute:], /SourceCache/Install/Install-384/source/engine/helpers/IFInstallPlan.m:302

    ———

    Also I tried to save the cache files to my cache directory at “/Volumes/work/Inbox, Outbox & Archive/Archive/System/Scratch/InstaDMG” and got the following output:

    ———

    typofonic-com:InstaDMG_1.4b3 anni1105$ sudo ./instadmg.bash -t /Volumes/work/Inbox,\ Outbox\ \&\ Archive/Archive/System/Scratch/InstaDMG
    mktemp: mkstemp failed on Archive/Archive/System/Scratch/InstaDMG/instaDMGTemp.hS2RzM: No such file or directory
    mktemp: mkdtemp failed on /Volumes/work/Inbox,: File exists
    mktemp: mkdtemp failed on Outbox: File exists
    mktemp: mkdtemp failed on &: File exists
    mktemp: mkdtemp failed on Archive/Archive/System/Scratch/InstaDMG/instaDMGMount.kJ2oUJ: No such file or directory
    19:50:47 ######InstaDMG build initiated######
    19:50:47 ######Mounting Mac OS X installer image######
    mktemp: mkstemp failed on /Volumes/work/Inbox,: File exists
    mktemp: mkstemp failed on Outbox: File exists
    mktemp: mkstemp failed on &: File exists
    mktemp: mkstemp failed on Archive/Archive/System/Scratch/InstaDMG/instaDMGTemp.kay54B: No such file or directory
    mktemp: mkstemp failed on /Volumes/work/Inbox,: File exists
    mktemp: mkstemp failed on Outbox: File exists
    mktemp: mkstemp failed on &: File exists
    mktemp: mkstemp failed on Archive/Archive/System/Scratch/InstaDMG/instaDMGTemp.qMvH4S: No such file or directory
    mktemp: mkstemp failed on /Volumes/work/Inbox,: File exists
    mktemp: mkstemp failed on Outbox: File exists
    mktemp: mkstemp failed on &: File exists
    mktemp: mkstemp failed on Archive/Archive/System/Scratch/InstaDMG/instaDMGTemp.aqYpyK: No such file or directory
    mktemp: mkstemp failed on /Volumes/work/Inbox,: File exists
    mktemp: mkstemp failed on Outbox: File exists
    mktemp: mkstemp failed on &: File exists
    mktemp: mkstemp failed on Archive/Archive/System/Scratch/InstaDMG/instaDMGTemp.bhF4w1: No such file or directory
    mktemp: mkstemp failed on /Volumes/work/Inbox,: File exists
    mktemp: mkstemp failed on Outbox: File exists
    mktemp: mkstemp failed on &: File exists
    mktemp: mkstemp failed on Archive/Archive/System/Scratch/InstaDMG/instaDMGTemp.hCBqRO: No such file or directory
    ./instadmg.bash: line 408: : No such file or directory
    ./instadmg.bash: line 415: : No such file or directory
    Mounting the shadow file (/Volumes/work/Inbox, Outbox & Archive/Archive/System/Scratch/InstaDMG/E25A38E3-16DE-4E9D-B102-721195C4BE45.dmg) onto the image.
    hdiutil: attach: cannot convert “” to URL
    ./instadmg.bash: line 424: : No such file or directory
    rm: : No such file or directory
    rm: : No such file or directory
    rm: : No such file or directory
    rm: : No such file or directory
    rm: : No such file or directory
    ERROR: the main install disk was not sucessfully mounted!
    ———

    So it seems that it doesn’t deal well with pathnames with space and special characters like “&”.

    typofonic
    Participant

    Thanks larkost – that was fast!

    I got the latest svn version and tried using the flag (and deleting my original cached baseInstall Leopard image before I ran it) but unfortunately it still created gigabytes of files in /tmp on my startup partition (including a .dmg of 3.22 gb). It seems only some of the files were moved….
    Any ideas?

Viewing 9 posts - 46 through 54 (of 54 total)