Skip to content

Commit

Permalink
fix(deck): Scale back fstab changes on Decks with eMMC.
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Aug 11, 2023
1 parent b57d461 commit cee0999
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system_files/desktop/shared/usr/bin/bazzite-hardware-setup
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ 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,compress-force=zstd:1,space_cache=v2,discard=async/g' /etc/fstab
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
fi
else
echo "No fstab param adjustments needed"
Expand Down

0 comments on commit cee0999

Please sign in to comment.