summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Grub.hs
diff options
context:
space:
mode:
authorJoey Hess2015-12-06 01:04:41 -0400
committerJoey Hess2015-12-06 01:04:41 -0400
commita94a3ba26e0c0676bd8beb03b3309a36fd393fde (patch)
tree097398eee03a9b659cf620b398955c1c214a7c1d /src/Propellor/Property/Grub.hs
parenta0016e1f91d69a2a4c36d85f87f2eb397fa3f56f (diff)
avoid running update-grub except for just after installing the grub package
Diffstat (limited to 'src/Propellor/Property/Grub.hs')
-rw-r--r--src/Propellor/Property/Grub.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Propellor/Property/Grub.hs b/src/Propellor/Property/Grub.hs
index 024a2827..1b7f2a0a 100644
--- a/src/Propellor/Property/Grub.hs
+++ b/src/Propellor/Property/Grub.hs
@@ -20,11 +20,10 @@ data BIOS = PC | EFI64 | EFI32 | Coreboot | Xen
--
-- This includes running update-grub.
installed :: BIOS -> Property NoInfo
-installed bios = installed' bios `before` mkConfig
+installed bios = installed' bios `onChange` mkConfig
-- Run update-grub, to generate the grub boot menu. It will be
--- automatically updated when kernel packages are
--- -- installed.
+-- automatically updated when kernel packages are installed.
mkConfig :: Property NoInfo
mkConfig = cmdProperty "update-grub" []
`assume` MadeChange