From 40f92a43b4506cbd69e8589228e17ace044be4ca Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 23 Oct 2015 12:20:25 -0400 Subject: propellor spin --- src/Propellor/Property/DiskImage.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Propellor/Property') 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. -- -- cgit v1.2.3