lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
246 stars 17 forks source link

26419996: startosinstall command line tool performs immediate reboot with no option to disable #14737

Open openradar-mirror opened 8 years ago

openradar-mirror commented 8 years ago

Description

This is a duplicate of rdar://22517297

Summary: New startosinstall binary included with OS X 10.11 always attempts to perform a reboot immediately after the installation is prepared, with no option to disable it.

Steps to Reproduce:

  1. Obtain the Beta 7 "Install OS X" app.
  2. Run the following command:

sudo /Applications/Install\ OS\ X\ El\ Capitan\ Developer\ Beta.app/Contents/Resources/startosinstall --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ El\ Capitan\ Developer\ Beta.app

Expected Results: OS X install is prepared, and a message is output similar to when softwareupdate is run and installs an update that requires a reboot: "The system should be restarted immediately." The administrator of the machine is expected to perform the reboot manually.

Actual Results: OS X install is prepared, and a reboot is attempted immediately. If a user is logged in and there is an application that fails to quit (due to dirty state), the command stalls indefinitely.

Regression: None. startosinstall is a new utility in 10.11.

Notes: In scenarios where a systems administrator wishes to perform an OS X upgrade using automated tools such as startosinstall, the behavior of triggering reboot immediately is often undesirable. It is often not the case that an administrator is performing this "unattended" install manually with a tool like ARD, but rather that that some environment (either automated or user-driven) is driving the installation and must first finish with other tasks before the machine is rebooted. For example:

In both of the above cases, it is problematic for the tool to assume that a reboot can be triggered immediately. In these cases the deployment tools themselves will manage restarting the computer within a very short time, once they have completed their "finishing" tasks.

As far as I'm aware the OS X installer is designed to be run immediately after the installation, and if too long has passed since the install was first staged it fails. If a message similar to softwareupdate were printed (as per "Expected Results"), this would suffice. It would at least be reasonable for there to be an option like: "--no-restart" for scenarios such as the ones described above, even if the default behavior is unchanged.

Product Version: 10.11.5 Created: 2016-05-23T16:13:38.713300 Originated: 2016-05-23T09:13:00 Open Radar Link: http://www.openradar.me/26419996

openradar-mirror commented 8 years ago

Modified: 2016-05-23T16:13:38.713480