If it cant find WIM it tries ESD.
I also removed extension trimming in logging so there is difference between .wim and .esd
For now I only came across install.esd but I also added boot.esd check in case Microsoft starts packing it this way.
Repacking ISO with ESD takes longer because it has to deal with compression.
Installing Windows also works (tested in VM), maybe slower because of compression.
This solves https://github.com/lxc/distrobuilder/issues/878
If it cant find WIM it tries ESD. I also removed extension trimming in logging so there is difference between .wim and .esd
For now I only came across install.esd but I also added boot.esd check in case Microsoft starts packing it this way.
Repacking ISO with ESD takes longer because it has to deal with compression. Installing Windows also works (tested in VM), maybe slower because of compression.