AFP548 Changing the world one server at a time.

Post build installs – seem to hang on restart command

Home › Forums › Software › InstaDMG › Post build installs – seem to hang on restart command

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #380307
    mgb123
    Participant

    I’ve been using post build installs kicked off by launch daemons.

    In my first post build script I set many of the standard first boot defaults.

    In my second, I install a handful of apps – and have a reboot command in place, but the reboot never takes place.

    I see a message in console that states that console couldn’t detach – is this my issue?

    What should I be looking for? Kinda flying blind here…

    Thanks all,
    Matt

    #380308
    dead2sin
    Participant

    If you don’t mind posting the script that is causing your grief to http://pastebin.com/ We can take a look at it and try to figure it out. So long as the script is running as root and has a reboot in it, it should work. Perhaps something else is getting hung up before the reboot.

    Nate

    #380309
    mgb123
    Participant

    Nate,

    thanks very much. I’ll post the script shortly. I do have a number of installs in there that seem to drag on forever – that’s the issue with post boot installs taking place in the background- I have no idea when they’re done.

    I’m wondering if I should also be looking for some sort of way to indicate when installs have completed in the background, like a popup or something similar…

    #380310
    dead2sin
    Participant

    mgb123 wrote:

    Nate,

    thanks very much. I’ll post the script shortly. I do have a number of installs in there that seem to drag on forever – that’s the issue with post boot installs taking place in the background- I have no idea when they’re done.

    I’m wondering if I should also be looking for some sort of way to indicate when installs have completed in the background, like a popup or something similar…

    Have you thought about using Munki? (http://code.google.com/p/munki/) I use it for all my firstboot installs and it works wonderfully. Its a lot more refined then a firstboot script installing packages via commandline and can manage future software and patch installs as well.

    Nate

    #380320
    mgb123
    Participant
    #380322
    dead2sin
    Participant

    I’ve never used shutdown -r +1 before, so I can’t attest to its usage, but perhaps you could try this instead and see what it does.

    #Wait 60 seconds
    sleep 60
    
    #Reboot
    reboot

    Nate

    #380371
    mgb123
    Participant

    Nate,
    The restart command you posted works perfectly. Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.