mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-29 22:20:21 +00:00
chore: Move to if/else for 64GB deck detector
This commit is contained in:
parent
cee0999eca
commit
1a9533c02c
@ -10,12 +10,11 @@ echo "Current kargs: $KARGS"
|
||||
# FSTAB CONFIGURATION
|
||||
if [[ $(grep "compress=zstd" /etc/fstab) ]]; then
|
||||
echo "Applying fstab param adjustments"
|
||||
sed -i 's/compress=zstd:1/noatime,lazytime,commit=120,discard=async,compress-force=zstd:1,space_cache=v2/g' /etc/fstab
|
||||
if grep -q '64GB' <<< $(lsblk -o MODEL); then
|
||||
echo "Increasing compression for detected 64GB eMMC"
|
||||
sed -i 's/compress-force=zstd:1/compress-force=zstd:3/g' /etc/fstab
|
||||
echo "Disabling commit and async discard changes for detected 64GB eMMC"
|
||||
sed -i 's/commit=120,discard=async//g' /etc/fstab
|
||||
echo "64GB eMMC detected"
|
||||
sed -i 's/compress=zstd:1/noatime,lazytime,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
|
||||
else
|
||||
echo "No fstab param adjustments needed"
|
||||
|
Loading…
x
Reference in New Issue
Block a user