summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--essential-files/manifest4
-rw-r--r--essential-files/usr/lib/tmpfiles.d/shutdownramfs.conf4
2 files changed, 8 insertions, 0 deletions
diff --git a/essential-files/manifest b/essential-files/manifest
index 960111c4..2b77c237 100644
--- a/essential-files/manifest
+++ b/essential-files/manifest
@@ -2,3 +2,7 @@
overwrite 0100644 0 0 /etc/os-release
overwrite 0100644 0 0 /etc/profile
overwrite 0100644 0 0 /etc/inputrc
+0040755 0 0 /usr
+0040755 0 0 /usr/lib
+0040755 0 0 /usr/lib/tmpfiles.d
+0100644 0 0 /usr/lib/tmpfiles.d/shutdownramfs.conf
diff --git a/essential-files/usr/lib/tmpfiles.d/shutdownramfs.conf b/essential-files/usr/lib/tmpfiles.d/shutdownramfs.conf
new file mode 100644
index 00000000..174f1f03
--- /dev/null
+++ b/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