summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/OS.hs
diff options
context:
space:
mode:
authorJoey Hess2014-12-06 15:39:02 -0400
committerJoey Hess2014-12-06 15:39:02 -0400
commit52a83a8911ebfa01224be7f378d76ecc403c8119 (patch)
tree0e3f8f19f8578b3cd7be49dc1449c6d6b70e9efe /src/Propellor/Property/OS.hs
parent7983046cd593142373aefd23dee6c1d84400cf1b (diff)
enable shadow passwords
I have seen weird almost boot failures when they're disabled, including a segfault.
Diffstat (limited to 'src/Propellor/Property/OS.hs')
-rw-r--r--src/Propellor/Property/OS.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Propellor/Property/OS.hs b/src/Propellor/Property/OS.hs
index 2720b476..6d55072f 100644
--- a/src/Propellor/Property/OS.hs
+++ b/src/Propellor/Property/OS.hs
@@ -10,6 +10,7 @@ module Propellor.Property.OS (
import Propellor
import qualified Propellor.Property.Debootstrap as Debootstrap
import qualified Propellor.Property.Ssh as Ssh
+import qualified Propellor.Property.User as User
import qualified Propellor.Property.File as File
import qualified Propellor.Property.Reboot as Reboot
import Propellor.Property.Mount
@@ -68,6 +69,10 @@ cleanInstallOnce confirmation = check (not <$> doesFileExist flagfile) $
go =
finalized
`requires`
+ -- easy to forget and system may not boot without shadow pw!
+ User.shadowConfig True
+ `requires`
+ -- reboot at end if the rest of the propellor run succeeds
Reboot.atEnd True (/= FailedChange)
`requires`
propellorbootstrapped