diff --git a/Makefile b/Makefile index 3809c4b93..dbb1d7d7e 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ install: install -D -m 0644 -t $(DESTDIR)/$(prefix)/lib/systemd/system systemd/*.service systemd/*.timer systemd/*.path systemd/*.target install -d -m 0755 $(DESTDIR)/$(prefix)/lib/systemd/system/multi-user.target.wants ln -s ../bootc-status-updated.path $(DESTDIR)/$(prefix)/lib/systemd/system/multi-user.target.wants/bootc-status-updated.path + ln -s ../bootc-status-updated.target $(DESTDIR)/$(prefix)/lib/systemd/system/multi-user.target.wants/bootc-status-updated.target install -D -m 0644 -t $(DESTDIR)/$(prefix)/share/doc/bootc/baseimage/base/usr/lib/ostree/ baseimage/base/usr/lib/ostree/prepare-root.conf install -d -m 755 $(DESTDIR)/$(prefix)/share/doc/bootc/baseimage/base/sysroot cp -PfT baseimage/base/ostree $(DESTDIR)/$(prefix)/share/doc/bootc/baseimage/base/ostree diff --git a/systemd/bootc-status-updated.target b/systemd/bootc-status-updated.target index a0c134172..2c1594688 100644 --- a/systemd/bootc-status-updated.target +++ b/systemd/bootc-status-updated.target @@ -2,3 +2,7 @@ Description=Target for bootc status changes Documentation=man:bootc-status-updated.target(8) StopWhenUnneeded=true +ConditionPathExists=/run/ostree-booted + +[Install] +WantedBy=multi-user.target