From 5faa18a5b7b166c420423e587b595d25a539a52d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 27 Jul 2017 09:17:25 -0400 Subject: DiskImage: Fix strictness bug in .parttable read/write sequence. --- src/Propellor/Property/DiskImage.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Propellor/Property/DiskImage.hs') diff --git a/src/Propellor/Property/DiskImage.hs b/src/Propellor/Property/DiskImage.hs index 55ccad76..c68a99e6 100644 --- a/src/Propellor/Property/DiskImage.hs +++ b/src/Propellor/Property/DiskImage.hs @@ -284,7 +284,7 @@ imageExists' img parttable = (setup cleanup) `describe` desc desc = "disk image exists " ++ img parttablefile = img ++ ".parttable" setup = property' desc $ \w -> do - oldparttable <- liftIO $ catchDefaultIO "" $ readFile parttablefile + oldparttable <- liftIO $ catchDefaultIO "" $ readFileStrict parttablefile res <- ensureProperty w $ imageExists img (partTableSize parttable) if res == NoChange && oldparttable == show parttable then return NoChange -- cgit v1.2.3