summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/OS.hs
diff options
context:
space:
mode:
authorJoey Hess2016-03-07 21:51:25 -0400
committerJoey Hess2016-03-07 21:54:22 -0400
commite7c7adc0c4cdc838eada045334b038c7f01dcc56 (patch)
tree85969e8f9bdc8b0d61279956cf5793f493a54ccb /src/Propellor/Property/OS.hs
parent6d50ff845e5180a88e7c82c309a483f0a564eb26 (diff)
add unsupportedOS
Diffstat (limited to 'src/Propellor/Property/OS.hs')
-rw-r--r--src/Propellor/Property/OS.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/OS.hs b/src/Propellor/Property/OS.hs
index 5f1adddb..e5da0921 100644
--- a/src/Propellor/Property/OS.hs
+++ b/src/Propellor/Property/OS.hs
@@ -86,7 +86,7 @@ cleanInstallOnce confirmation = check (not <$> doesFileExist flagfile) $
osbootstrapped = withOS (newOSDir ++ " bootstrapped") $ \o -> case o of
(Just d@(System (Debian _) _)) -> debootstrap d
(Just u@(System (Buntish _) _)) -> debootstrap u
- _ -> error "os is not declared to be Debian or *buntu"
+ _ -> unsupportedOS
debootstrap targetos = ensureProperty $
-- Ignore the os setting, and install debootstrap from