- This topic has 6 replies, 2 voices, and was last updated 15 years, 9 months ago by
mgb123.
-
AuthorPosts
-
January 18, 2011 at 3:20 am #380307
mgb123
ParticipantI’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,
MattJanuary 18, 2011 at 12:05 pm #380308dead2sin
ParticipantIf 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
January 18, 2011 at 1:46 pm #380309mgb123
ParticipantNate,
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…
January 18, 2011 at 2:29 pm #380310dead2sin
Participantmgb123 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
January 18, 2011 at 9:08 pm #380320January 18, 2011 at 10:21 pm #380322dead2sin
ParticipantI’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 rebootNate
January 28, 2011 at 12:17 am #380371mgb123
ParticipantNate,
The restart command you posted works perfectly. Thanks! -
AuthorPosts
- You must be logged in to reply to this topic.