summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Systemd.hs
diff options
context:
space:
mode:
authorJoey Hess2015-10-20 12:01:59 -0400
committerJoey Hess2015-10-20 12:06:24 -0400
commit05d35eb568e74deafc936e6735171291410b5f0b (patch)
tree3d1f25930948f59c96b942ec296b11094f3f20c3 /src/Propellor/Property/Systemd.hs
parentbfcc5a7666f817fbfe9c149480ca0359e3e744ec (diff)
Chroot: Converted to use a ChrootBootstrapper type class
So other ways to bootstrap chroots can easily be added in separate modules. (API change)
Diffstat (limited to 'src/Propellor/Property/Systemd.hs')
-rw-r--r--src/Propellor/Property/Systemd.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Propellor/Property/Systemd.hs b/src/Propellor/Property/Systemd.hs
index 0ec0697e..3f20a9e2 100644
--- a/src/Propellor/Property/Systemd.hs
+++ b/src/Propellor/Property/Systemd.hs
@@ -187,7 +187,8 @@ container name mkchroot = Container name c h
& resolvConfed
& linkJournal
where
- c@(Chroot.Chroot _ system _ _) = mkchroot (containerDir name)
+ c = mkchroot (containerDir name)
+ system = Chroot.chrootSystem c
h = Host name [] mempty
-- | Runs a container using systemd-nspawn.