propellor spin
This commit is contained in:
parent
1106c305d0
commit
5eb980d048
|
@ -52,9 +52,10 @@ import qualified Propellor.Property.User as User
|
||||||
-- > -- rest of system properties here
|
-- > -- rest of system properties here
|
||||||
cleanInstallOnce :: Confirmation -> Property
|
cleanInstallOnce :: Confirmation -> Property
|
||||||
cleanInstallOnce confirmation = check (not <$> doesFileExist flagfile) $
|
cleanInstallOnce confirmation = check (not <$> doesFileExist flagfile) $
|
||||||
|
go `requires` confirmed "clean install confirmed" confirmation
|
||||||
|
where
|
||||||
|
go =
|
||||||
osbootstrapped
|
osbootstrapped
|
||||||
`requires`
|
|
||||||
confirmed "clean install confirmed" confirmation
|
|
||||||
`before`
|
`before`
|
||||||
transitioned
|
transitioned
|
||||||
`before`
|
`before`
|
||||||
|
@ -63,7 +64,7 @@ cleanInstallOnce confirmation = check (not <$> doesFileExist flagfile) $
|
||||||
propellorbootstrapped
|
propellorbootstrapped
|
||||||
`before`
|
`before`
|
||||||
finalized
|
finalized
|
||||||
where
|
|
||||||
osbootstrapped = withOS "/new-os bootstrapped" $ \o -> case o of
|
osbootstrapped = withOS "/new-os bootstrapped" $ \o -> case o of
|
||||||
(Just d@(System (Debian _) _)) -> debootstrap d
|
(Just d@(System (Debian _) _)) -> debootstrap d
|
||||||
(Just u@(System (Ubuntu _) _)) -> debootstrap u
|
(Just u@(System (Ubuntu _) _)) -> debootstrap u
|
||||||
|
|
Loading…
Reference in New Issue