propellor spin
This commit is contained in:
parent
05ad6ad130
commit
228154cf1f
|
@ -73,21 +73,21 @@ cleanInstallOnce confirmation = check (not <$> doesFileExist flagfile) $
|
||||||
Debootstrap.built "/new-os" targetos Debootstrap.DefaultConfig
|
Debootstrap.built "/new-os" targetos Debootstrap.DefaultConfig
|
||||||
|
|
||||||
transitioned = property "/new-os moved into place" $
|
transitioned = property "/new-os moved into place" $
|
||||||
return NoChange
|
return FailedChange
|
||||||
-- unmount all mounts
|
-- unmount all mounts
|
||||||
-- move all directories to /old-os,
|
-- move all directories to /old-os,
|
||||||
-- move /new-os to /
|
-- move /new-os to /
|
||||||
-- touch flagfile
|
-- touch flagfile
|
||||||
|
|
||||||
propellorbootstrapped = property "propellor re-debootstrapped in new os" $
|
propellorbootstrapped = property "propellor re-debootstrapped in new os" $
|
||||||
return NoChange
|
return FailedChange
|
||||||
-- re-bootstrap propellor in /usr/local/propellor,
|
-- re-bootstrap propellor in /usr/local/propellor,
|
||||||
-- (using git repo bundle, privdata file, and possibly
|
-- (using git repo bundle, privdata file, and possibly
|
||||||
-- git repo url, which all need to be arranged to
|
-- git repo url, which all need to be arranged to
|
||||||
-- be present in /old-os's /usr/local/propellor)
|
-- be present in /old-os's /usr/local/propellor)
|
||||||
|
|
||||||
finalized = property "clean install finalized" $ do
|
finalized = property "clean install finalized" $ do
|
||||||
--liftIO $ writeFile flagfile ""
|
liftIO $ writeFile flagfile ""
|
||||||
return MadeChange
|
return MadeChange
|
||||||
|
|
||||||
flagfile = "/etc/propellor-cleaninstall"
|
flagfile = "/etc/propellor-cleaninstall"
|
||||||
|
|
Loading…
Reference in New Issue