summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2013-12-15 15:06:59 +0100
committerThomas Bächler <thomas@archlinux.org>2013-12-15 15:09:42 +0100
commitdcd45ba1b54ea0a386442fa17cd1eb4d7396b04a (patch)
tree153d984f9b1a4ebc1af7299c4dd0ff5ef3f98888
parentfe786a6b8d6cb82d972fd47b0033d5f42e00acdd (diff)
downloadmkinitcpio-dcd45ba1b54ea0a386442fa17cd1eb4d7396b04a.tar.gz
mkinitcpio-dcd45ba1b54ea0a386442fa17cd1eb4d7396b04a.tar.xz
Add a tmpfiles.d configuration file to create /run/initramfs.
-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