summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Partition.hs
diff options
context:
space:
mode:
authorJoey Hess2017-03-24 09:31:16 -0400
committerJoey Hess2017-03-24 09:31:16 -0400
commit4bf95542a83ca1acaf627da547fa85c57583e4c2 (patch)
tree1b4106227600b38711934e82b245d8fb40ee2eb9 /src/Propellor/Property/Partition.hs
parent9fbf9fac4efab8764608ba3d804054c031b25318 (diff)
Property.Partition: Improve loop device detection code used with kpartx when building disk images. /dev/mapper/loop* symlinks are now detected as block devices.
Diffstat (limited to 'src/Propellor/Property/Partition.hs')
-rw-r--r--src/Propellor/Property/Partition.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/Partition.hs b/src/Propellor/Property/Partition.hs
index 2bf5b927..756e2b6b 100644
--- a/src/Propellor/Property/Partition.hs
+++ b/src/Propellor/Property/Partition.hs
@@ -58,7 +58,7 @@ isLoopDev l = isLoopDev' (partitionLoopDev l) <&&> isLoopDev' (wholeDiskLoopDev
isLoopDev' :: FilePath -> IO Bool
isLoopDev' f
| "loop" `isInfixOf` f = catchBoolIO $
- isBlockDevice <$> getFileStatus f
+ isBlockDevice <$> getSymbolicLinkStatus f
| otherwise = return False
-- | Uses the kpartx utility to create device maps for partitions contained