-
Notifications
You must be signed in to change notification settings - Fork 96
Add manual mount command option #545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add manual mount command option #545
Conversation
|
@anurag5sh I wanted to see if you have time to review this PR and provide any input. |
|
@dwc0011 Thank you for raising the PR, I think it would be a useful feature to have. |
I can certainly do that, I did it as a separate step because when I contributed to the amazon plugin a few years ago, they wanted what I had added a new step to not impact the current step in any way. I will start work on switching into the mount step soon. Thanks |
|
@dwc0011 As I checked the changes shouldn't affect the current flow unless the user explicitly specifies this field. |
thank you @tanmay-hc I will work on it this week, we are doing some testing and I once complete I will refactor to include in the current step and get it pushed. I appreciate your engagement and responses! |
9288eb7 to
6c3a10e
Compare
Description
Create a user controlled custom "manual-mount-command" option that when present will run in place of the packer-plugin-azures's mount step, providing the user total control over partitioning and mounting process. Aligning the chroot builder with similar capabilities to the ebssurrogate builder, allowing for reuse of configs/scripts for each builder with minimal edits. While packer still manages the overall workflow around the interactions with the cloud apis and registering/creating images and abstracting that workflow across the different providers.
Use Case(s)
Allows users to use the chroot builder to create an image with an lvm-enabled root volume but also, instead of just targeting LVM, this is a flexible option that supports other complex mounting scenarios.
Much like the ebssurrogate builder supports total user control a "manual-mount-command" will bring this capability to the chroot builder.
We are also working to add this to the packer-plugin-amazon chroot builder to support issue: hashicorp/packer-plugin-amazon#602
Potential configuration
"manual-mount-command": when set, the built in mounting step is skipped and a new manual mount command step is performed instead. It is a string that represents the command(s) to run.
**Note: mount path and device are still processed in the manual step. If user wants to use the configured/detected devices/mount paths they can reference like the second example.
Resolved Issues
Closes #510
Rollback Plan
If a change needs to be reverted, we will roll out an update to the code within 7 days.
Changes to Security Controls
None