summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--tmpfiles/mkinitcpio.conf3
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 28d4ad9..0e0edea 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,8 @@ DIRS = \
/usr/share/man/man5 \
/usr/share/man/man1 \
/usr/share/mkinitcpio \
- /usr/lib/systemd/system
+ /usr/lib/systemd/system \
+ /usr/lib/tmpfiles.d
all: doc
@@ -53,6 +54,7 @@ install: all
install -m644 -t $(DESTDIR)/usr/share/mkinitcpio mkinitcpio.d/*
install -m644 systemd/mkinitcpio-generate-shutdown-ramfs.service \
$(DESTDIR)/usr/lib/systemd/system/mkinitcpio-generate-shutdown-ramfs.service
+ install -m644 tmpfiles/mkinitcpio.conf $(DESTDIR)/usr/lib/tmpfiles.d/mkinitcpio.conf
install -m755 50-mkinitcpio.install $(DESTDIR)/usr/lib/kernel/install.d/50-mkinitcpio.install
diff --git a/tmpfiles/mkinitcpio.conf b/tmpfiles/mkinitcpio.conf
new file mode 100644
index 0000000..4d8cdd7
--- /dev/null
+++ b/tmpfiles/mkinitcpio.conf
@@ -0,0 +1,3 @@
+# Create /run/initramfs for shutdown
+
+d /run/initramfs 0755 root root