aboutsummaryrefslogtreecommitdiff
path: root/services/unmount
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2019-08-11 13:24:28 +0200
committerDavid Oberhollenzer <goliath@infraroot.at>2019-09-18 13:07:09 +0200
commit418ca4bc726b106698d2c5e4045fcc6de089101e (patch)
tree21c0a3b740272b33d3e864c2b2cf9821787e9447 /services/unmount
parent628adf2e034acb040874e267451b0a6e3f3ff96a (diff)
Propperly unmount the overlay partition on shutdown
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'services/unmount')
-rw-r--r--services/unmount9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/unmount b/services/unmount
new file mode 100644
index 0000000..6574c8d
--- /dev/null
+++ b/services/unmount
@@ -0,0 +1,9 @@
+description unmount overlay filesystem
+type wait
+target %0
+after sigkill
+before sync
+exec {
+ umount -nli /var/lib /usr /etc
+ umount -nli /cfg/overlay
+}