postinstall script kills loginwindow and interferes with a munki bootstrap session
release 1.0b32 pkg.
Hmm, how would you propose fixing this? The postinstall script indeed restarts the loginwindow. How would it know not to restart the loginwindow (and thus killing an active munki session)?
I suppose one option, though perhaps not ideal, is to just have it not restart the loginwindow and instead require a logout or restart on the package?
Yeah a requires restart option on the pkg might be more suitable.. not great though...
... or a check for the munkibootstrap flag, and don't kill the loginwindow if it exists. Then the loginwindow kill or restart can left up to the reader.
So I think killing the login window interrupts any munki run at the login window, not just a bootstrap run (I think @robperc was seeing this issue). I'd lean towards not killing the login window at all.
I ended up modifying the postinstall script to remove the for loop where it kills the loginwindow, and changing the pkginfo to require restart. This fixed the munki run interruption, however it appears the plugin isn't enabled until a SECOND restart, after the restart required by the pkginfo.