summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/DiskImage.hs
diff options
context:
space:
mode:
authorJoey Hess2015-10-23 12:20:25 -0400
committerJoey Hess2015-10-23 12:20:25 -0400
commit40f92a43b4506cbd69e8589228e17ace044be4ca (patch)
tree590766f434ccc28593d63106806cd767e1945603 /src/Propellor/Property/DiskImage.hs
parentaf218b839b371dcddb0948fa385fc98c9abf4273 (diff)
propellor spin
Diffstat (limited to 'src/Propellor/Property/DiskImage.hs')
-rw-r--r--src/Propellor/Property/DiskImage.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Propellor/Property/DiskImage.hs b/src/Propellor/Property/DiskImage.hs
index c13fa064..eea33706 100644
--- a/src/Propellor/Property/DiskImage.hs
+++ b/src/Propellor/Property/DiskImage.hs
@@ -125,7 +125,6 @@ imageBuiltFrom img chrootdir tabletype final partspec = mkimg <!> rmimg
-- tie the knot!
let (mnts, parttable) = fitChrootSize tabletype partspec $
map (calcsz mnts) mnts
- liftIO $ print mnts
ensureProperty $
imageExists img (partTableSize parttable)
`before`
@@ -229,9 +228,9 @@ defSz = MegaBytes 128
-- A filesystem with 1% overhead might just sneak by as acceptable.
-- Double that just in case. Add an additional 3 mb to deal with
-- non-scaling overhead of filesystems (eg, superblocks).
--- Add an additional 100 mb for temp files etc.
+-- Add an additional 200 mb for temp files, journals, etc.
fudge :: PartSize -> PartSize
-fudge (MegaBytes n) = MegaBytes (n + n `div` 100 * 2 + 3 + 100)
+fudge (MegaBytes n) = MegaBytes (n + n `div` 100 * 2 + 3 + 200)
-- | Specifies a mount point and a constructor for a Partition.
--