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.
The first step of the guide tells us to clone your packer-windows repo, but Packer will throw an error when trying to build:
This is because
Debloat-Windows-10is a submodule of a different repo.This can be fixed by changing the first step to use
--recurse-submoduleswhen cloning. The submodule will then be cloned as well, and the issue will be resolved.