From e295f4f94532d827d17352703e23b6fc475052cb Mon Sep 17 00:00:00 2001 From: Werner Fink Date: Thu, 2 Dec 2021 14:05:51 +0100 Subject: [PATCH] Avoid install errror due missed directory Signed-off-by: Werner Fink --- Makefile | 8 +++++--- module-setup.sh | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1e542f5..65fc467 100644 --- a/Makefile +++ b/Makefile @@ -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 = @@ -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} ; \ @@ -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} ; \ diff --git a/module-setup.sh b/module-setup.sh index e51819c..5793c23 100755 --- a/module-setup.sh +++ b/module-setup.sh @@ -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}"