enable shadow passwords

I have seen weird almost boot failures when they're disabled, including a
segfault.
This commit is contained in:
Joey Hess 2014-12-06 15:39:02 -04:00
parent 7983046cd5
commit 52a83a8911
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ module Propellor.Property.OS (
import Propellor import Propellor
import qualified Propellor.Property.Debootstrap as Debootstrap import qualified Propellor.Property.Debootstrap as Debootstrap
import qualified Propellor.Property.Ssh as Ssh 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.File as File
import qualified Propellor.Property.Reboot as Reboot import qualified Propellor.Property.Reboot as Reboot
import Propellor.Property.Mount import Propellor.Property.Mount
@ -68,6 +69,10 @@ cleanInstallOnce confirmation = check (not <$> doesFileExist flagfile) $
go = go =
finalized finalized
`requires` `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) Reboot.atEnd True (/= FailedChange)
`requires` `requires`
propellorbootstrapped propellorbootstrapped