Skip to content

Commit ccb68fd

Browse files
author
Mitchell Levy
committed
Have du give the size in bytes, not blocks
1 parent b49f25b commit ccb68fd

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
@@ -48,7 +48,7 @@ To save space, you can now delete the compilation artifacts:
4848
If you prefer, you can also build the modules VHDX manually as follows:
4949

5050
1. Calculate the modules size (plus 256MiB for slack):
51-
`modules_size=$(du -s "$PWD/modules" | awk '{print $1;}'); modules_size=$((modules_size + (256 * (1<<20))));`
51+
`modules_size=$(du -bs "$PWD/modules" | awk '{print $1;}'); modules_size=$((modules_size + (256 * (1<<20))));`
5252

5353
2. Create a blank image file for the modules:
5454
`dd if=/dev/zero of="$PWD/modules.img" bs=1024 count=$((modules_size / 1024))`

0 commit comments

Comments
 (0)