It appears in:

commands/core/drupal/site_install.inc that:

        'update_status_module' => array(
          1 => TRUE,
          2 => TRUE,
        ),

Why not have it default to TRUE, but allow a option to turn these off. Suggestions include:

--update_status_module=1,2

or:

--update_status_module_enable=FALSE
--update_status_module_email=FALSE

Open to suggestions. Can create a patch if needed.

Comments

greg.1.anderson’s picture

Wouldn't it meet your requirements to just run drush dis update after the site install completes?

Paul Kim Consulting’s picture

That could work. However, there are sometimes very strict requirements around a new install talking to anything on the internet. Drush seems to segment fault when the update module can't talk to updates.drupal.org during installation of the update module. This is what I'm seeing when talking to updates.drupal.org is disabled (by firewall?):

WD actions: Action 'Make content sticky' added. [8.22 sec, 48.13 MB]                        [notice]
WD actions: Action 'Make content unsticky' added. [8.22 sec, 48.13 MB]                      [notice]
WD actions: Action 'Promote content to front page' added. [8.22 sec, 48.13 MB]              [notice]
WD actions: Action 'Remove content from front page' added. [8.23 sec, 48.13 MB]             [notice]
WD actions: Action 'Save content' added. [8.23 sec, 48.13 MB]                               [notice]
WD actions: Action 'Ban IP address of current user' added. [8.23 sec, 48.14 MB]             [notice]
WD actions: Action 'Block current user' added. [8.23 sec, 48.14 MB]                         [notice]
Segmentation fault

This is what i'm seeing when there is no restriction in place:

WD actions: Action 'Make content sticky' added. [13.33 sec, 47.7 MB]                                                                                                                                                                                                       [notice]
WD actions: Action 'Make content unsticky' added. [13.33 sec, 47.7 MB]                                                                                                                                                                                                     [notice]
WD actions: Action 'Promote content to front page' added. [13.33 sec, 47.71 MB]                                                                                                                                                                                            [notice]
WD actions: Action 'Remove content from front page' added. [13.33 sec, 47.71 MB]                                                                                                                                                                                           [notice]
WD actions: Action 'Save content' added. [13.34 sec, 47.71 MB]                                                                                                                                                                                                             [notice]
WD actions: Action 'Ban IP address of current user' added. [13.34 sec, 47.71 MB]                                                                                                                                                                                           [notice]
WD actions: Action 'Block current user' added. [13.34 sec, 47.71 MB]                                                                                                                                                                                                       [notice]
WD file: The file public://ctools/css was not deleted, because it does not exist. [13.36 sec, 47.6 MB]                                                                                                                                                                     [notice]
Trying to get property of non-object module.inc:405 [14.14 sec, 50.19 MB]                                                                                                                                                                                                  [notice]
WD system: update module installed. [14.35 sec, 50.08 MB]                                                                                                                                                                                                                    [info]
WD system: update module enabled. [14.35 sec, 50.08 MB]     
greg.1.anderson’s picture

Version: All-versions-4.x-dev » 8.x-6.x-dev
Status: Active » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If this feature is still desired, you may copy it to our Github project. For best results, create a Pull Request that has been updated for the master branch. Post a link here to the PR, and please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.

greg.1.anderson’s picture

Issue summary: View changes

Fix typo.

kenorb’s picture

Issue summary: View changes

Possible workaround:

drush site-install foo_profile install_configure_form.update_status_module='array(FALSE,FALSE)'

This also can be overridden in hook_form_FORM_ID_alter, like:

/**
 * Implements hook_form_FORM_ID_alter() for install_configure_form().
 *
 * Allows the profile to alter the site configuration form.
 */
function myprofile_form_install_configure_form_alter(&$form, $form_state) {
  $form['site_information']['site_name']['#default_value'] = 'Foo';
  $form['site_information']['site_mail']['#default_value'] = 'test@example.com';

  $form['admin_account']['account']['name']['#default_value'] = 'admin';
  $form['admin_account']['account']['mail']['#default_value'] = 'test@example.com';

  $form['server_settings']['site_default_country']['#default_value'] = 'GB';
  $form['server_settings']['date_default_timezone']['#default_value'] = 'Europe/London';
}