summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--propellor.cabal1
-rw-r--r--src/Propellor/Property/DirectBoot.hs7
-rw-r--r--src/Propellor/Types/Bootloader.hs2
3 files changed, 10 insertions, 0 deletions
diff --git a/propellor.cabal b/propellor.cabal
index 0454fc92..518505a4 100644
--- a/propellor.cabal
+++ b/propellor.cabal
@@ -74,6 +74,7 @@ Library
Propellor.Property.Cron
Propellor.Property.DebianMirror
Propellor.Property.Debootstrap
+ Propellor.Property.DirectBoot
Propellor.Property.DiskImage
Propellor.Property.DiskImage.PartSpec
Propellor.Property.Dns
diff --git a/src/Propellor/Property/DirectBoot.hs b/src/Propellor/Property/DirectBoot.hs
new file mode 100644
index 00000000..4807471e
--- /dev/null
+++ b/src/Propellor/Property/DirectBoot.hs
@@ -0,0 +1,7 @@
+module Propellor.Property.DirectBoot(installed) where
+
+import Propellor.Base
+import Propellor.Types.Bootloader
+
+installed :: Property (HasInfo + UnixLike)
+installed = pureInfoProperty "direct boot" [DirectBoot]
diff --git a/src/Propellor/Types/Bootloader.hs b/src/Propellor/Types/Bootloader.hs
index 65117bd2..cdb37a31 100644
--- a/src/Propellor/Types/Bootloader.hs
+++ b/src/Propellor/Types/Bootloader.hs
@@ -10,6 +10,7 @@ data BootloaderInstalled
= GrubInstalled GrubTarget
| FlashKernelInstalled
| UbootInstalled (FilePath -> FilePath -> Property Linux)
+ | DirectBoot
deriving (Typeable)
-- | Platforms that grub can boot.
@@ -19,6 +20,7 @@ instance Show BootloaderInstalled where
show (GrubInstalled _) = "GrubInstalled"
show FlashKernelInstalled = "FlashKernelInstalled"
show (UbootInstalled _) = "UbootInstalled"
+ show DirectBoot = "DirectBoot"
instance IsInfo [BootloaderInstalled] where
propagateInfo _ = PropagateInfo False