Skip to content

Commit 3cc6229

Browse files
author
Mitchell Levy
committed
Copy over contents of folder, not folder itself
1 parent ccb68fd commit 3cc6229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ If you prefer, you can also build the modules VHDX manually as follows:
5757
`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-
`sudo cp -r "$PWD/modules/lib/modules/$(make -s kernelrelease)" "$PWD/modules_img" && sudo umount "$PWD/modules_img"`
60+
`sudo cp -r "$PWD/modules/lib/modules/$(make -s kernelrelease)"/* "$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)