diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2019-08-11 13:24:28 +0200 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2019-09-18 13:07:09 +0200 |
commit | 418ca4bc726b106698d2c5e4045fcc6de089101e (patch) | |
tree | 21c0a3b740272b33d3e864c2b2cf9821787e9447 /services | |
parent | 628adf2e034acb040874e267451b0a6e3f3ff96a (diff) |
Propperly unmount the overlay partition on shutdown
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'services')
-rw-r--r-- | services/Makemodule.am | 4 | ||||
-rw-r--r-- | services/ifdown.in | 2 | ||||
-rw-r--r-- | services/unmount | 9 |
3 files changed, 12 insertions, 3 deletions
diff --git a/services/Makemodule.am b/services/Makemodule.am index 8bd2bb1..84904fb 100644 --- a/services/Makemodule.am +++ b/services/Makemodule.am @@ -8,7 +8,7 @@ init_DATA += services/unbound services/dnsmasq services/ifdown services/modules init_DATA += services/network services/hostapd services/nft services/sigkill init_DATA += services/sshd services/sshd_keygen services/consolefont init_DATA += services/nginx services/usyslogd services/klogd -init_DATA += services/gcrond services/mountusr +init_DATA += services/gcrond services/mountusr services/unmount init_DATA += services/tmpfsrun services/tmpfsvar if DHCPCLIENT @@ -24,4 +24,4 @@ EXTRA_DIST += services/sync services/sysctl services/tmpfs EXTRA_DIST += services/dhcpcdmaster services/unbound EXTRA_DIST += services/usyslogd services/dnsmasq services/network EXTRA_DIST += services/consolefont services/gcrond services/nginx -EXTRA_DIST += services/tmpfsrun +EXTRA_DIST += services/tmpfsrun services/unmount diff --git a/services/ifdown.in b/services/ifdown.in index 1310098..2946ca0 100644 --- a/services/ifdown.in +++ b/services/ifdown.in @@ -2,6 +2,6 @@ description "stop all network interfaces" type wait target %0 after sigkill sigterm -before sync +before sync unmount exec "@SCRIPTDIR@/ifdown.sh"
\ No newline at end of file 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 +} |