Skip to content

Commit 9fed55b

Browse files
committed
Fix errors in instructions
1 parent deb4846 commit 9fed55b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ as follows:
3535

3636
3. 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

5656
3. 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

5959
4. 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

6262
5. Convert the img to VHDX:
6363
`qemu-img convert -O VHDX "$PWD/modules.img" "$PWD/modules.vhdx"`

0 commit comments

Comments
 (0)