Skip to content

Commit

Permalink
Avoid install errror due missed directory
Browse files Browse the repository at this point in the history
Signed-off-by: Werner Fink <[email protected]>
  • Loading branch information
bitstreamout committed Dec 2, 2021
1 parent 3676b5a commit e295f4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ BOOT_FIFO = /dev/blog
DEBUG =
DESTDIR =
MAJOR := 2
MINOR := 22
MINOR := 24
VERSION := $(MAJOR).$(MINOR)
DATE = $(shell date +'%d%b%y' | tr '[:lower:]' '[:upper:]')
COPTS =
Expand Down Expand Up @@ -146,6 +146,9 @@ install: $(TODO)
for target in default sysinit basic local-fs-pre rescue shutdown emergency initrd-switch-root; do \
$(MKDIR) $(DESTDIR)$(SYSDUNITS)/$${target}.target.wants ; \
done
for service in systemd-ask-password-blog ; do \
$(MKDIR) $(DESTDIR)$(SYSDUNITS)/$${target}.service.wants ; \
done
for unit in blog-quit.service ; do \
$(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/default.target.wants/$${unit} ; \
$(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/rescue.target.wants/$${unit} ; \
Expand All @@ -154,9 +157,8 @@ install: $(TODO)
for unit in blog.service ; do \
$(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/basic.target.wants/$${unit} ; \
done
for unit in blog-store-messages.service ; do \
for unit in blog-store-messages.service systemd-ask-password-blog.path ; do \
$(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/sysinit.target.wants/$${unit} ; \
$(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/shutdown.target.wants/$${unit} ; \
done
for unit in blog-umount.service ; do \
$(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/local-fs-pre.target.wants/$${unit} ; \
Expand Down
4 changes: 4 additions & 0 deletions module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ install() {
do
ln_r "${systemdsystemunitdir}/${s}" "${systemdsystemunitdir}/basic.target.wants/${s}"
done
for s in systemd-ask-password-blog.path
do
ln_r "${systemdsystemunitdir}/${s}" "${systemdsystemunitdir}/sysinit.target.wants/${s}"
done
for s in blog-final.service
do
ln_r "${systemdsystemunitdir}/${s}" "${systemdsystemunitdir}/shutdown.target.wants/${s}"
Expand Down

0 comments on commit e295f4f

Please sign in to comment.