Skip to content

Debloat-Windows-10 tools not available when cloning packer-windows #100

Description

@jeffreytigch

The first step of the guide tells us to clone your packer-windows repo, but Packer will throw an error when trying to build:

packer build --only=vmware-iso windows_2025_docker.json
Error: Failed to prepare build: "vmware-iso"

3 error(s) occurred:

* Bad Floppy disk file
'./submodules/Debloat-Windows-10/scripts/disable-windows-defender.ps1': stat
./submodules/Debloat-Windows-10/scripts/disable-windows-defender.ps1: no such
file or directory
* Bad Floppy disk file
'./submodules/Debloat-Windows-10/scripts/optimize-windows-update.ps1': stat
./submodules/Debloat-Windows-10/scripts/optimize-windows-update.ps1: no such
file or directory
* Bad Floppy disk file './submodules/Debloat-Windows-10/lib/force-mkdir.psm1':
stat ./submodules/Debloat-Windows-10/lib/force-mkdir.psm1: no such file or
directory

This is becauseDebloat-Windows-10 is a submodule of a different repo.

This can be fixed by changing the first step to use --recurse-submodules when cloning. The submodule will then be cloned as well, and the issue will be resolved.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions