Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fedora setup
#!/bin/bash
# zswap
# https://fedoraproject.org/wiki/Zswap
sudo -i
echo "add_drivers+=\"lz4 lz4_compress\"" | tee /etc/dracut.conf.d/lz4.conf
dracut --regenerate-all --force
# /etc/default/grub
GRUB_CMDLINE_LINUX=" ... zswap.enabled=1 zswap.max_pool_percent=25 zswap.compressor=lz4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment