summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2013-11-19 23:10:28 +0100
committerDave Reisner <dreisner@archlinux.org>2013-11-24 02:57:13 +0100
commit2fa0eb25d47c920c18e7d2498c647a801d836596 (patch)
tree13b6adfc9d791e25fb9d6b1b5cae1dc7150de011 /Makefile
parent88129397a4f4c714195d2a100b851ecf7d0b0e85 (diff)
downloadmkinitcpio-2fa0eb25d47c920c18e7d2498c647a801d836596.tar.gz
mkinitcpio-2fa0eb25d47c920c18e7d2498c647a801d836596.tar.xz
Add mkinitcpio-generate-shutdown-ramfs.service
When enabled, this service generates an "initramfs" that systemd pivots to on shutdown to ensure clean umounting and shutdown of loop and dm devices. The actual work is done by systemd-shutdown.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1b933c9..38a7111 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,8 @@ DIRS = \
/usr/share/man/man8 \
/usr/share/man/man5 \
/usr/share/man/man1 \
- /usr/share/mkinitcpio
+ /usr/share/mkinitcpio \
+ /usr/lib/systemd/system
all: doc
@@ -48,6 +49,7 @@ install: all
cp -at $(DESTDIR)/usr/lib/initcpio hooks install
install -m644 -t $(DESTDIR)/usr/share/mkinitcpio mkinitcpio.d/*
+ install -m644 mkinitcpio-generate-shutdown-ramfs.service $(DESTDIR)/usr/lib/systemd/system/mkinitcpio-generate-shutdown-ramfs.service
install -m755 50-mkinitcpio.install $(DESTDIR)/usr/lib/kernel/install.d/50-mkinitcpio.install