Skip to content

Commit

Permalink
wsl2: enable image-output-vhdx for all wsl2 images (this enables ws…
Browse files Browse the repository at this point in the history
…l2 images to be run directly on Hyper-V)

- future work: export the rootfs .tar.gz, that can be used on WSL2 as a Custom Distro
  • Loading branch information
rpardini committed Jan 14, 2024
1 parent 6beb573 commit 4644489
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/sources/vendors/microsoft/wsl2.hooks.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

# enable output-vhdx, so image files for wsl2 can be used directly as Hyper-V virtual machines as well.
enable_extension "image-output-vhdx" # Use .vhdx dynamic output, for Hyper-V (not Azure 1024-aligned static vhd)

# A separate LINUXFAMILY and thus kernel .debs for wsl2; one day we might consider merging wsl2/hyperv patches into generic uefi
function post_family_config__wsl2() {
: "${LINUXFAMILY:?"LINUXFAMILY not set"}"
Expand Down

0 comments on commit 4644489

Please sign in to comment.