diff options
author | Jonathan Lebon <jonathan@jlebon.com> | 2018-09-28 14:30:38 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-10-23 13:10:49 +0000 |
commit | ac1a919ffd4fe944d06c4f4510604baa73d1bf8e (patch) | |
tree | cfa0e1d3ff26bb16d5d7ea9514b73fdfb13d33ee /Makefile-boot.am | |
parent | 1e16aec357c5c6f02d358c81ce8c81ce68fe0818 (diff) | |
download | ostree-ac1a919ffd4fe944d06c4f4510604baa73d1bf8e.tar.gz |
boot: Add ostree-finalize-staged.path
Rather than manually starting the `ostree-finalize-staged.service` unit,
we can leverage systemd's path units for this. It fits quite nicely too,
given that we already have a path we drop iif we have a staged
deployment.
To give some time for the preset to make it to systems, we don't yet
drop the explicit call to `systemctl start`. Though we do make it
conditional based on a DEBUG env var so that we can actually test it in
CI for now. Once we're sure this has propagated, we can drop the
`systemctl start` path and the env var together.
Closes: #1740
Approved by: cgwalters
Diffstat (limited to 'Makefile-boot.am')
-rw-r--r-- | Makefile-boot.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile-boot.am b/Makefile-boot.am index 5b512b6c..d18351af 100644 --- a/Makefile-boot.am +++ b/Makefile-boot.am @@ -39,7 +39,10 @@ endif if BUILDOPT_SYSTEMD systemdsystemunit_DATA = src/boot/ostree-prepare-root.service \ - src/boot/ostree-remount.service src/boot/ostree-finalize-staged.service + src/boot/ostree-remount.service \ + src/boot/ostree-finalize-staged.service \ + src/boot/ostree-finalize-staged.path \ + $(NULL) systemdtmpfilesdir = $(prefix)/lib/tmpfiles.d dist_systemdtmpfiles_DATA = src/boot/ostree-tmpfiles.conf |