Skip to content
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

Floppy filenames changed #1963

Closed
majkinetor opened this issue Mar 4, 2015 · 3 comments
Closed

Floppy filenames changed #1963

majkinetor opened this issue Mar 4, 2015 · 3 comments
Labels
bug core Core components of Packer

Comments

@majkinetor
Copy link

I have this issue where scripts I use during Windows setup have their names changed. It was usually only casing but now I have also extension shortening.

In template I have:

"floppy_files": [ "./Autounattend.xml", "./scripts" ]

ls ./scripts

_provision.ps1
_setup.ps1
enable-rdp.ps1
enable-winrm.ps1
Get-WUInstall.ps1
Install-GuestAdditions.ps1
Install-OpenSSH.ps1
oracle-cert.cer
Proxy.psm1
Set-PinnedApplication.ps1
set-proxy.ps1
Set-VarDefaults.ps1
vagrant.pub
vagrant-ssh.ps1
windows-features.ps1
windows-tweaks.ps1
windows-update.ps1

_setup.ps1 runs from Autounatended.xml as a first boot command. It contains ls A:

    Directory: A:\

Mode                LastWriteTime     Length Name                                                                                                                                       

-----          3/4/2015   1:58 PM       9192 Autounattend.xml                                                          
-----          3/4/2015   1:58 PM      70328 Get-WUInstall.ps1                                                         
-----          3/4/2015   1:58 PM       1262 Additions.ps1Additions.ps1                                                
-----          3/4/2015   1:58 PM       3548 Install-OpenSSH.ps1                                                       
-----          3/4/2015   1:58 PM       7334 PROXY.PSM                                                                 
-----          3/4/2015   1:58 PM       3148 Set-PinnedApplication.ps1                                                 
-----          3/4/2015   1:58 PM        836 Set-VarDefaults.ps1                                                       
-----          3/4/2015   1:58 PM       1180 _provision.ps1                                                            
-----          3/4/2015   1:58 PM        814 _SETUP.PS1                                                                
-----          3/4/2015   1:58 PM        328 enable-rdp.ps1                                                            
-----          3/4/2015   1:58 PM       1801 enable-winrm.ps1                                                          
-----          3/4/2015   1:58 PM       1419 oracle-cert.cer                                                           
-----          3/4/2015   1:58 PM        353 set-proxy.ps1                                                             
-----          3/4/2015   1:58 PM        781 vagrant-ssh.ps1                                                           
-----          3/4/2015   1:58 PM        409 VAGRANT.PUB                                                               
-----          3/4/2015   1:58 PM        409 windows-features.ps1                                                      
-----          3/4/2015   1:58 PM       3126 windows-tweaks.ps1                                                        
-----          3/4/2015   1:58 PM       1911 windows-update.ps1                                                        
                                                    

Notice PROXY.PSM (should be Proxy.psm1) and files in upper case (all are one word file names) and strange Additions.ps1Additionsps1 file.

@majkinetor
Copy link
Author

Note that if I rename file Proxy.psm1 to Proxy-module.psm1 everything works OK.

@sethvargo sethvargo added bug core Core components of Packer labels Mar 4, 2015
@rasa
Copy link
Collaborator

rasa commented Mar 4, 2015

The Additions.ps1 getting renamed to Additions.ps1Additions.ps1 issue is documented/addressed at mitchellh/go-fs#2
Not sure about Proxy.psm1 becoming PROXY.PSM but that's probably in https://github.com/mitchellh/go-fs as well. I've filed mitchellh/go-fs#5 there for it.

@mitchellh
Copy link
Contributor

Upstream bug, parts are fixed, one issue remains.

@ghost ghost locked and limited conversation to collaborators Apr 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug core Core components of Packer
Projects
None yet
Development

No branches or pull requests

4 participants