Skip to content

Commit 2210c1d

Browse files
committed
More RAM: revert mount -o discard option to fix #2968
Still no clue how this could cause any sort of issue, and could not reproduce it on trixie or bookworm
1 parent 8f49045 commit 2210c1d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/More RAM/install

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ if ! grep -qxF "ExecStart=/usr/bin/zram.sh storage-off" /etc/systemd/system/zram
255255
#create a partition and mount it
256256
mkfs.ext4 -F -O ^has_journal,^metadata_csum,^orphan_file -b 4096 /dev/zram${storage_drive_num} >/dev/null
257257
mkdir -p /zram
258-
mount -o discard /dev/zram${storage_drive_num} /zram
258+
#-o discard seems to cause boot problem for some users. Can't reproduce. See https://github.com/Botspot/pi-apps/issues/2968
259+
#mount -o discard /dev/zram${storage_drive_num} /zram
260+
mount /dev/zram${storage_drive_num} /zram
259261
chmod -R 777 /zram #make writable for any user
260262
rmdir /zram/lost+found || true
261263
fi

0 commit comments

Comments
 (0)