fix(deck): Explicitly set discard mode due to upstream kernel making async the default in 6.2

This commit is contained in:
Kyle Gospodnetich 2023-08-11 14:52:34 -07:00
parent 1a9533c02c
commit b363bef4e9

View File

@ -12,7 +12,7 @@ if [[ $(grep "compress=zstd" /etc/fstab) ]]; then
echo "Applying fstab param adjustments"
if grep -q '64GB' <<< $(lsblk -o MODEL); then
echo "64GB eMMC detected"
sed -i 's/compress=zstd:1/noatime,lazytime,compress-force=zstd:3,space_cache=v2/g' /etc/fstab
sed -i 's/compress=zstd:1/noatime,lazytime,commit=5,discard=sync,compress-force=zstd:3,space_cache=v2/g' /etc/fstab
else
sed -i 's/compress=zstd:1/noatime,lazytime,commit=120,discard=async,compress-force=zstd:1,space_cache=v2/g' /etc/fstab
fi