File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ as follows:
4646 ` $ dd if=/dev/zero of="$PWD/modules.img" bs=1024 count=$((modules_size / 1024)) `
4747
48486 . Setup filesystem and mount img file:
49- ` $ 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"; sudo chmod a+w "$PWD/modules_img" `
49+ ` $ 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" && sudo chmod a+w "$PWD/modules_img" `
5050
51517 . Copy over the modules, unmount the img now that we're done with it:
52- ` $ cp -r "$PWD/modules/lib/modules/$(make -s kernelrelease)"/* "$PWD/modules_img"; sudo umount "$PWD/modules_img" `
52+ ` $ cp -r "$PWD/modules/lib/modules/$(make -s kernelrelease)"/* "$PWD/modules_img" && sudo umount "$PWD/modules_img" `
5353
54548 . Convert the img to VHDX:
5555 ` $ qemu-img convert -O vhdx "$PWD/modules.img" "$PWD/modules.vhdx" `
You can’t perform that action at this time.
0 commit comments