hashicorp / hashicorp/packer-plugin-amazon
Building with amazon-chroot: unable to unmount
- Dominant language
- Go
- Stars
- 91
- Forks
- 141
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 3
Description
_This issue was originally opened by @anoopsaxena in https://github.com/hashicorp/packer/issues/12134 and has been migrated to this repository. The original issue description is below._
---
#### Community Note
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.
#### Overview of the Issue
A paragraph or two about the issue you're experiencing.
#### Reproduction Steps
Steps to reproduce this issue
### Packer version
From `packer version`
### Simplified Packer Template
If the file is longer than a few dozen lines, please include the URL to the
[gist](https://gist.github.com/) of the log or use the [Github detailed
format](https://gist.github.com/ericclemmons/b146fe5da72ca1f706b2ef72a20ac39d)
instead of posting it directly in the issue.
### Operating system and Environment details
OS, Architecture, and any other information you can provide about the
environment.
### Log Fragments and crash.log files
Include appropriate log fragments. If the log is longer than a few dozen lines,
please include the URL to the [gist](https://gist.github.com/) of the log or
use the [Github detailed format](https://gist.github.com/ericclemmons/b146fe5da72ca1f706b2ef72a20ac39d) instead of posting it directly in the issue.
Set the env var `PACKER_LOG=1` for maximum log detail.
We're trying to build a docker image using packer in a GIt jenkins Pipeline and build fails while mounting the volume, refer the log :
amazon-chroot: Prevalidating AMI Name: xx-centos-7-docker-1.0.111-snapshot
amazon-chroot: gathering information about this ec2 instance...
amazon-chroot: Found Image Id: ami-xxxxx
amazon-chroot: Checking the root device on source AMI...
amazon-chroot: Creating the root volume...
amazon-chroot: Attaching the root volume to /dev/sdf
amazon-chroot: Mounting the root device...
amazon-chroot: Error mounting root volume: exit status 1
amazon-chroot: stderr: mount: only root can use "--options" option
amazon-chroot: Detaching EBS volume...
amazon-chroot: Deleting the created EBS volume...
Is there a way to specify in Packer to mount the volume, Kindly suggest.,
Contributor guide
Assessment
This issue has not been assessed yet.