forked from Mirror/pmbootstrap
pmb: increase inode count for rootfs and use a more accurate size (!1743)
This drops the --apparent-size parameter when calculating the size required for rootfs, which seemed to return a size that was too small for some devices. This also includes specifying the number of inodes to support when formatting rootfs. Fixes #1717
This commit is contained in:
parent
200cc80a9d
commit
24a565a59b
3 changed files with 4 additions and 4 deletions
|
@ -49,8 +49,8 @@ def test_get_folder_size(args, tmpdir):
|
|||
|
||||
# Check if the size is correct. Unfortunately, the `du` call
|
||||
# in pmb.helpers.other.folder_size is not very accurate, so we
|
||||
# allow 10kb of tolerance (good enough for our use case): #760
|
||||
tolerance = 10240
|
||||
# allow 30kb of tolerance (good enough for our use case): #760 #1717
|
||||
tolerance = 30 * 1024
|
||||
size = 204800 * files
|
||||
result = pmb.helpers.other.folder_size(args, tmpdir)
|
||||
assert (result < size + tolerance and result > size - tolerance)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue