Skip to content

Commit

Permalink
Add a bit more overhead to the root filesystem size
Browse files Browse the repository at this point in the history
When this is too small the rootfs can run into problems when used with a
live system. Doubling it leaves enough space for the system to run
properly during the installation and since it's all compresses it
doesn't make the image noticeably bigger.
  • Loading branch information
bcl committed Jun 30, 2015
1 parent 4342b8f commit 675b17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pylorax/imgutils.py
Expand Up @@ -248,7 +248,7 @@ def round_to_blocks(size, blocksize):
return size

# TODO: move filesystem data outside this function
def estimate_size(rootdir, graft=None, fstype=None, blocksize=4096, overhead=128):
def estimate_size(rootdir, graft=None, fstype=None, blocksize=4096, overhead=256):
graft = graft or {}
getsize = lambda f: os.lstat(f).st_size
if fstype == "btrfs":
Expand Down

0 comments on commit 675b17d

Please sign in to comment.