From 68f864299303ac8d510f19d67e8d7e6fe0681138 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 5 Jul 2017 20:19:19 -0400 Subject: DiskImage: Removed grubBooted Properties that used to need it as a parameter now look at Info about the bootloader that is installed in the chroot that the disk image is created from. (API change) This is a simplication, and avoids the user needing to repeat themselves in the propellor config, thus avoiding mistakes. When no boot loader is installed, or multiple different ones are, disk image creation will fail, which seems reasonable. This commit was sponsored by Jake Vosloo on Patreon. --- src/Propellor/Types/Bootloader.hs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/Propellor/Types/Bootloader.hs (limited to 'src/Propellor/Types/Bootloader.hs') diff --git a/src/Propellor/Types/Bootloader.hs b/src/Propellor/Types/Bootloader.hs new file mode 100644 index 00000000..c6953b94 --- /dev/null +++ b/src/Propellor/Types/Bootloader.hs @@ -0,0 +1,12 @@ +{-# LANGUAGE FlexibleInstances #-} + +module Propellor.Types.Bootloader where + +import Propellor.Types.Info + +-- | Boot loader installed on a host. +data BootloaderInstalled = GrubInstalled + deriving (Typeable, Show) + +instance IsInfo [BootloaderInstalled] where + propagateInfo _ = PropagateInfo False -- cgit v1.2.3