summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Systemd.hs
diff options
context:
space:
mode:
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 e0b7d572..1e0c3f86 100644
--- a/src/Propellor/Property/Systemd.hs
+++ b/src/Propellor/Property/Systemd.hs
@@ -195,12 +195,13 @@ machined = withOS "machined installed" $ \w o ->
-- > & ...
container :: MachineName -> (FilePath -> Chroot.Chroot) -> Container
container name mkchroot =
- let c = Container name chroot (host name (containerProps chroot))
+ let c = Container name chroot h
in setContainerProps c $ containerProps c
&^ resolvConfed
&^ linkJournal
where
chroot = mkchroot (containerDir name)
+ h = host name (containerProps chroot)
-- | Defines a container with a given machine name, with the chroot
-- created using debootstrap.