File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ as follows:
3535
36363 . Build the kernel using the WSL2 kernel configuration and put the modules in a ` modules `
3737 folder under the current working directory:
38- ` $ make KCONFIG_CONFIG=Microsoft/config-wsl && make INSTALL_MOD_PATH ="$PWD/modules" modules_install `
38+ ` $ make KCONFIG_CONFIG=Microsoft/config-wsl && make MODLIB ="$PWD/modules" modules_install `
3939
4040 You may wish to include ` -j$(nproc) ` on the first ` make ` command to build in parallel.
4141
@@ -54,10 +54,10 @@ If you prefer, you can also build the modules VHDX manually as follows:
5454 ` dd if=/dev/zero of="$PWD/modules.img" bs=1024 count=$((modules_size / 1024)) `
5555
56563 . Setup filesystem and mount img file:
57- ` lo_dev=$(sudo losetup --find --show "$PWD/modules.img") && sudo mkfs -t ext4 "$lo_dev" && sudo mount "$lo_dev" "$PWD/modules_img" `
57+ ` lo_dev=$(sudo losetup --find --show "$PWD/modules.img") && sudo mkfs -t ext4 "$lo_dev" && mkdir "$PWD/modules_img" && sudo mount "$lo_dev" "$PWD/modules_img" `
5858
59594 . Copy over the modules, unmount the img now that we're done with it:
60- ` mkdir "$PWD/modules_img" && sudo cp -r "$PWD/modules" "$PWD/modules_img" && sudo umount "$PWD/modules_img"`
60+ ` sudo cp -r "$PWD/modules" "$PWD/modules_img" && sudo umount "$PWD/modules_img" `
6161
62625 . Convert the img to VHDX:
6363 ` qemu-img convert -O VHDX "$PWD/modules.img" "$PWD/modules.vhdx" `
You can’t perform that action at this time.
0 commit comments