summaryrefslogtreecommitdiffstats
path: root/systemd/mkinitcpio-generate-shutdown-ramfs.service
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-11-26 17:09:49 +0100
committerDave Reisner <dreisner@archlinux.org>2013-11-26 17:09:49 +0100
commita1e50f04b89ff042baf91a403a6df0cbd1e3cec2 (patch)
treede9bbad0fd84f35a6e56a8f28f809a5e7776cc24 /systemd/mkinitcpio-generate-shutdown-ramfs.service
parent2fa0eb25d47c920c18e7d2498c647a801d836596 (diff)
downloadmkinitcpio-a1e50f04b89ff042baf91a403a6df0cbd1e3cec2.tar.gz
mkinitcpio-a1e50f04b89ff042baf91a403a6df0cbd1e3cec2.tar.xz
move a bunch of stuff to subdirs
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'systemd/mkinitcpio-generate-shutdown-ramfs.service')
-rw-r--r--systemd/mkinitcpio-generate-shutdown-ramfs.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/systemd/mkinitcpio-generate-shutdown-ramfs.service b/systemd/mkinitcpio-generate-shutdown-ramfs.service
new file mode 100644
index 0000000..36c2508
--- /dev/null
+++ b/systemd/mkinitcpio-generate-shutdown-ramfs.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Generate shutdown-ramfs
+DefaultDependencies=no
+Before=shutdown.target
+ConditionFileIsExecutable=!/run/initramfs/shutdown
+
+[Service]
+Type=oneshot
+# /tmp could be umounted at this point
+# use /run as temporary directory
+Environment=TMPDIR=/run
+ExecStart=/usr/bin/mkinitcpio -A sd-shutdown -c /dev/null -d /run/initramfs
+
+[Install]
+WantedBy=shutdown.target