Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
8cac7e8d
Commit
8cac7e8d
authored
May 28, 2015
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1930 from bhourigan/issue1929
Prepending -i to sudo so PATH is inherited from profile.d scripts
parents
68bde0ba
a4cfd921
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
builder/amazon/instance/builder.go
builder/amazon/instance/builder.go
+2
-2
website/source/docs/builders/amazon-instance.html.markdown
website/source/docs/builders/amazon-instance.html.markdown
+2
-2
No files found.
builder/amazon/instance/builder.go
View file @
8cac7e8d
...
@@ -73,7 +73,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
...
@@ -73,7 +73,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
}
}
if
b
.
config
.
BundleUploadCommand
==
""
{
if
b
.
config
.
BundleUploadCommand
==
""
{
b
.
config
.
BundleUploadCommand
=
"sudo -n ec2-upload-bundle "
+
b
.
config
.
BundleUploadCommand
=
"sudo -
i -
n ec2-upload-bundle "
+
"-b {{.BucketName}} "
+
"-b {{.BucketName}} "
+
"-m {{.ManifestPath}} "
+
"-m {{.ManifestPath}} "
+
"-a {{.AccessKey}} "
+
"-a {{.AccessKey}} "
+
...
@@ -85,7 +85,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
...
@@ -85,7 +85,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
}
}
if
b
.
config
.
BundleVolCommand
==
""
{
if
b
.
config
.
BundleVolCommand
==
""
{
b
.
config
.
BundleVolCommand
=
"sudo -n ec2-bundle-vol "
+
b
.
config
.
BundleVolCommand
=
"sudo -
i -
n ec2-bundle-vol "
+
"-k {{.KeyPath}} "
+
"-k {{.KeyPath}} "
+
"-u {{.AccountId}} "
+
"-u {{.AccountId}} "
+
"-c {{.CertPath}} "
+
"-c {{.CertPath}} "
+
...
...
website/source/docs/builders/amazon-instance.html.markdown
View file @
8cac7e8d
...
@@ -270,7 +270,7 @@ is responsible for executing `ec2-bundle-vol` in order to store and image
...
@@ -270,7 +270,7 @@ is responsible for executing `ec2-bundle-vol` in order to store and image
of the root filesystem to use to create the AMI.
of the root filesystem to use to create the AMI.
```
text
```
text
sudo -n ec2-bundle-vol \
sudo -
i -
n ec2-bundle-vol \
-k {{.KeyPath}} \
-k {{.KeyPath}} \
-u {{.AccountId}} \
-u {{.AccountId}} \
-c {{.CertPath}} \
-c {{.CertPath}} \
...
@@ -297,7 +297,7 @@ across multiple lines for convenience of reading. The bundle upload command
...
@@ -297,7 +297,7 @@ across multiple lines for convenience of reading. The bundle upload command
is responsible for taking the bundled volume and uploading it to S3.
is responsible for taking the bundled volume and uploading it to S3.
```
text
```
text
sudo -n ec2-upload-bundle \
sudo -
i -
n ec2-upload-bundle \
-b {{.BucketName}} \
-b {{.BucketName}} \
-m {{.ManifestPath}} \
-m {{.ManifestPath}} \
-a {{.AccessKey}} \
-a {{.AccessKey}} \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment