summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Grub.hs
diff options
context:
space:
mode:
authorJoey Hess2014-07-07 03:08:12 -0400
committerJoey Hess2014-07-07 03:08:12 -0400
commitdba84b8219d29506886065cc6bcd821d977d2bf8 (patch)
tree0fce8880326235bfd9e208536e299fb056ddfd4f /src/Propellor/Property/Grub.hs
parenta1679dfd92b0ecaf2f4bea8c1bb9b1c74d261f13 (diff)
propellor spin
Diffstat (limited to 'src/Propellor/Property/Grub.hs')
-rw-r--r--src/Propellor/Property/Grub.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Propellor/Property/Grub.hs b/src/Propellor/Property/Grub.hs
index 7ca6275b..b8e1b662 100644
--- a/src/Propellor/Property/Grub.hs
+++ b/src/Propellor/Property/Grub.hs
@@ -17,7 +17,8 @@ type GrubDevice = String
-- "xen/xvda".
chainPVGrub :: GrubDevice -> GrubDevice -> Property
chainPVGrub rootdev bootdev = combineProperties desc
- [ "/boot/grub/menu.lst" `File.hasContent`
+ [ File.dirExists "/boot/grub"
+ , "/boot/grub/menu.lst" `File.hasContent`
[ "default 1"
, "timeout 30"
, ""