mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-29 05:27:41 +00:00
Only TRIM on Mac if configured via database
Stops unnecessary log spam. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
4325cc46d3
commit
085a2f7fbd
@ -2,7 +2,10 @@
|
||||
|
||||
# Windows and Mac have TRIM support, clean out unused frequently
|
||||
case "$(mobyplatform)" in
|
||||
"windows"|"mac")
|
||||
"windows")
|
||||
/sbin/fstrim /var
|
||||
;;
|
||||
"mac")
|
||||
mobyconfig exists disk/trim && [ "$(mobyconfig get disk/trim)" = "true" ] && /sbin/fstrim /var
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user