cloudbase / windows-imaging-tools

Tools to automate the creation of a Windows image for OpenStack, supporting KVM, Hyper-V, ESXi and more.
Apache License 2.0
677 stars 227 forks source link

Fix custom resources directory #212

Closed ksalman closed 6 years ago

ksalman commented 6 years ago

Use the directory where files were initially copied.

ksalman commented 6 years ago

Hello, The custom scripts are written to CustomResources directory https://github.com/cloudbase/windows-openstack-imaging-tools/blob/master/WinImageBuilder.psm1#L391, however the Logon.ps1 script is looking for those scripts in a different directory https://github.com/cloudbase/windows-openstack-imaging-tools/blob/master/UnattendResources/Logon.ps1#L4

ader1990 commented 6 years ago

The custom scripts folder is correctly copied a few lines below: https://github.com/cloudbase/windows-openstack-imaging-tools/blob/master/WinImageBuilder.psm1#L398

ksalman commented 6 years ago

Oh I see, you are right. I had mistakenly only seen the custom_resources_path variable and had put my scripts there, incorrectly.