From 6fc3c4eb4986c4f6bb4dd7065c0ca9eedbc75882 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Tue, 7 Apr 2020 16:43:33 -0700 Subject: [PATCH 1/2] properly document how to set boot_wait to 0s --- common/bootcommand/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/bootcommand/config.go b/common/bootcommand/config.go index 3ecaaea5a..57c787a36 100644 --- a/common/bootcommand/config.go +++ b/common/bootcommand/config.go @@ -117,7 +117,8 @@ type BootConfig struct { // the `boot_command`. The value of this should be a duration. Examples are // `5s` and `1m30s` which will cause Packer to wait five seconds and one // minute 30 seconds, respectively. If this isn't specified, the default is - // `10s` or 10 seconds. + // `10s` or 10 seconds. To set boot_wait to 0s, use a negative number, such + // as "-1s" BootWait time.Duration `mapstructure:"boot_wait"` // This is an array of commands to type when the virtual machine is first // booted. The goal of these commands should be to type just enough to From 346dcae78e4c193f017d1e59bc3ebc46412e572b Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Tue, 7 Apr 2020 17:01:23 -0700 Subject: [PATCH 2/2] make generate --- .../partials/common/bootcommand/BootConfig-not-required.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/pages/partials/common/bootcommand/BootConfig-not-required.mdx b/website/pages/partials/common/bootcommand/BootConfig-not-required.mdx index 3159ff57d..8f45a23e1 100644 --- a/website/pages/partials/common/bootcommand/BootConfig-not-required.mdx +++ b/website/pages/partials/common/bootcommand/BootConfig-not-required.mdx @@ -10,7 +10,8 @@ the `boot_command`. The value of this should be a duration. Examples are `5s` and `1m30s` which will cause Packer to wait five seconds and one minute 30 seconds, respectively. If this isn't specified, the default is - `10s` or 10 seconds. + `10s` or 10 seconds. To set boot_wait to 0s, use a negative number, such + as "-1s" - `boot_command` ([]string) - This is an array of commands to type when the virtual machine is first booted. The goal of these commands should be to type just enough to