generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of temporary cdrom devices (#31)
* Track cdrom in temporaryDevices for step_clean_vmx There was a previous attempt to do this in step_configure_vmx, but that only covers vmware-iso (missing potential cases when using cd_files/cd_content in vmware-vmx) and it had the wrong device name (would mark <type>0:<primary> as temporary when the device name used for cd_path is actually <type>1:<primary> * Fix overwriting an existing cdrom device ParseVMX/EncodeVMX force the keys to lowercase, so inserting with a mixed-case key fails to replace existing values, resulting in duplicate lines and vmware potentially still using the previous filename * Generalize SkipFloppy to SkipDevices It's not just floppies, it doesn't make sense to create any new temporaryDevices in between StepCleanFiles and StepCleanVMX.
- Loading branch information
Showing
4 changed files
with
21 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters