mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-08-03 07:55:17 +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
|
# Windows and Mac have TRIM support, clean out unused frequently
|
||||||
case "$(mobyplatform)" in
|
case "$(mobyplatform)" in
|
||||||
"windows"|"mac")
|
"windows")
|
||||||
/sbin/fstrim /var
|
/sbin/fstrim /var
|
||||||
;;
|
;;
|
||||||
|
"mac")
|
||||||
|
mobyconfig exists disk/trim && [ "$(mobyconfig get disk/trim)" = "true" ] && /sbin/fstrim /var
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user