summaryrefslogtreecommitdiff
path: root/src/Propellor/Types/Bootloader.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/Types/Bootloader.hs')
-rw-r--r--src/Propellor/Types/Bootloader.hs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Propellor/Types/Bootloader.hs b/src/Propellor/Types/Bootloader.hs
index 9822d520..fd929d7e 100644
--- a/src/Propellor/Types/Bootloader.hs
+++ b/src/Propellor/Types/Bootloader.hs
@@ -2,13 +2,20 @@
module Propellor.Types.Bootloader where
+import Propellor.Types
import Propellor.Types.Info
-- | Boot loader installed on a host.
data BootloaderInstalled
= GrubInstalled
| FlashKernelInstalled
- deriving (Typeable, Show)
+ | UbootInstalled (FilePath -> FilePath -> Property Linux)
+ deriving (Typeable)
+
+instance Show BootloaderInstalled where
+ show GrubInstalled = "GrubInstalled"
+ show FlashKernelInstalled = "FlashKernelInstalled"
+ show (UbootInstalled _) = "UbootInstalled"
instance IsInfo [BootloaderInstalled] where
propagateInfo _ = PropagateInfo False