mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-06 01:44:06 +00:00
Better shutdown script
- make sure we unmount filesystems Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -8,4 +8,8 @@
|
||||
::ctrlaltdel:/sbin/reboot
|
||||
|
||||
# Stuff to do before rebooting
|
||||
#::shutdown:/sbin/openrc shutdown
|
||||
::shutdown:/usr/sbin/killall5 -15
|
||||
::shutdown:/bin/sleep 5
|
||||
::shutdown:/usr/sbin/killall5 -9
|
||||
::shutdown:/bin/echo "Unmounting filesystems"
|
||||
::shutdown:/bin/umount -a -r
|
||||
|
||||
Reference in New Issue
Block a user