summaryrefslogtreecommitdiff
path: root/files/essential-files/usr/lib/tmpfiles.d/shutdownramfs.conf
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-05-24 16:55:48 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-05-24 17:05:06 +0100
commit7339ae4d183c1eae2b9a6fda4e084af58e6e67cf (patch)
tree96e81fa487c187e0134535bb5b70e5a67d99711f /files/essential-files/usr/lib/tmpfiles.d/shutdownramfs.conf
parentf049e15fab122ebd3c2554c81b95fbf7f66bd766 (diff)
downloaddefinitions-7339ae4d183c1eae2b9a6fda4e084af58e6e67cf.tar.gz
Add deployment target for devel-system
BuildStream is soon going to gain built-in support for deploying images so this should be considered a temporary x86_64 only hack. It's based on instructions in the defs2bst README: https://gitlab.com/BuildStream/defs2bst/blob/master/README.rst
Diffstat (limited to 'files/essential-files/usr/lib/tmpfiles.d/shutdownramfs.conf')
-rw-r--r--files/essential-files/usr/lib/tmpfiles.d/shutdownramfs.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/files/essential-files/usr/lib/tmpfiles.d/shutdownramfs.conf b/files/essential-files/usr/lib/tmpfiles.d/shutdownramfs.conf
new file mode 100644
index 00000000..174f1f03
--- /dev/null
+++ b/files/essential-files/usr/lib/tmpfiles.d/shutdownramfs.conf
@@ -0,0 +1,4 @@
+# If /usr/lib/shutdownramfs has been populated, copy it into /run/initramfs so
+# /run/initramfs/shutdown will be executed on shut-down, so that it may unmount
+# the rootfs.
+C /run/initramfs - - - - /usr/lib/shutdownramfs