Skip to content

Commit d94f882

Browse files
Mitchell Levychessturo
authored andcommitted
Have du give the size in bytes, not blocks
1 parent 4c39acb commit d94f882

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)