forked from josch/mmdebstrap
Compare commits
2 commits
5fa2457fd5
...
main
Author | SHA1 | Date | |
---|---|---|---|
489e51a2eb | |||
fe87c3a1b8 |
2 changed files with 5 additions and 1 deletions
|
@ -154,3 +154,4 @@ Contributors
|
|||
- Konstantin Demin
|
||||
- Trent W. Buck
|
||||
- Vagrant Cascadian
|
||||
- Gioele Barabucci
|
||||
|
|
|
@ -4094,7 +4094,10 @@ sub approx_disk_usage {
|
|||
$installed_size += 1;
|
||||
}
|
||||
};
|
||||
find($scan_installed_size, $directory);
|
||||
# We use no_chdir because otherwise the unshared user has to have read
|
||||
# permissions for the current working directory when producing an ext2
|
||||
# image. See https://bugs.debian.org/1005857
|
||||
find({ wanted => $scan_installed_size, no_chdir => 1 }, $directory);
|
||||
|
||||
# because the above is only a heuristic we add 10% extra for good measure
|
||||
return int($installed_size * 1.1);
|
||||
|
|
Loading…
Reference in a new issue