lxc / distrobuilder

System container image builder for LXC and Incus
https://linuxcontainers.org
Apache License 2.0
591 stars 171 forks source link

Add handling of ESD files for Windows repacking #879

Closed foxtrotcz closed 2 months ago

foxtrotcz commented 3 months ago

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.

stgraber commented 2 months ago

Thanks!