[master 1/1] Add a bit more overhead to the root filesystem size
bcl
installerbot-noreply at redhat.com
Tue Jun 30 17:55:34 UTC 2015
From: "Brian C. Lane" <bcl at redhat.com>
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.
---
src/pylorax/imgutils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pylorax/imgutils.py b/src/pylorax/imgutils.py
index 2625c98..25c300d 100644
--- a/src/pylorax/imgutils.py
+++ b/src/pylorax/imgutils.py
@@ -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":
--
To view this commit on github, visit https://github.com/rhinstaller/lorax/commit/675b17dfc50aebe54d867a94b01ca9276e6d55e3
More information about the anaconda-patches
mailing list