summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Grub.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/Property/Grub.hs')
-rw-r--r--src/Propellor/Property/Grub.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Propellor/Property/Grub.hs b/src/Propellor/Property/Grub.hs
index ea54295b..024a2827 100644
--- a/src/Propellor/Property/Grub.hs
+++ b/src/Propellor/Property/Grub.hs
@@ -27,6 +27,7 @@ installed bios = installed' bios `before` mkConfig
-- -- installed.
mkConfig :: Property NoInfo
mkConfig = cmdProperty "update-grub" []
+ `assume` MadeChange
-- | Installs grub; does not run update-grub.
installed' :: BIOS -> Property NoInfo
@@ -50,6 +51,7 @@ installed' bios = Apt.installed [pkg] `describe` "grub package installed"
-- onChange after OS.cleanInstallOnce.
boots :: OSDevice -> Property NoInfo
boots dev = cmdProperty "grub-install" [dev]
+ `assume` MadeChange
`describe` ("grub boots " ++ dev)
-- | Use PV-grub chaining to boot
@@ -75,8 +77,9 @@ chainPVGrub rootdev bootdev timeout = combineProperties desc
, "/boot/load.cf" `File.hasContent`
[ "configfile (" ++ bootdev ++ ")/boot/grub/grub.cfg" ]
, installed Xen
- , flagFile (scriptProperty ["grub-mkimage --prefix '(" ++ bootdev ++ ")/boot/grub' -c /boot/load.cf -O x86_64-xen /usr/lib/grub/x86_64-xen/*.mod > /boot/xen-shim"]) "/boot/xen-shim"
- `describe` "/boot-xen-shim"
+ , flip flagFile "/boot/xen-shim" $ scriptProperty ["grub-mkimage --prefix '(" ++ bootdev ++ ")/boot/grub' -c /boot/load.cf -O x86_64-xen /usr/lib/grub/x86_64-xen/*.mod > /boot/xen-shim"]
+ `assume` MadeChange
+ `describe` "/boot-xen-shim"
]
where
desc = "chain PV-grub"