pentoo-core: zram lz4->zstd

This commit is contained in:
Rick Farina (Zero_Chaos) 2022-08-29 16:57:23 -04:00
parent d0be96b452
commit 98e16334af
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 3 additions and 3 deletions

View file

@ -11,8 +11,8 @@ start() {
fi
modprobe zram
sleep 1
echo $(nproc) >/sys/devices/virtual/block/zram0/max_comp_streams || REVAL=$?
echo lz4 >/sys/devices/virtual/block/zram0/comp_algorithm || RETVAL=$?
"$(nproc)" > /sys/devices/virtual/block/zram0/max_comp_streams || REVAL=$?
echo zstd > /sys/devices/virtual/block/zram0/comp_algorithm || RETVAL=$?
echo "${ZRAM_ABSOLUTE/\.??/}" > /sys/devices/virtual/block/zram0/disksize || RETVAL=$?
eindent
ebegin "Formatting swap"

View file

@ -143,7 +143,7 @@ src_install() {
if ! use pentoo-in-a-container; then
newinitd "${FILESDIR}"/pentoo-linux-symlinks.initd pentoo-linux-symlinks
newinitd "${FILESDIR}"/pentoo-powersave.initd pentoo-powersave
newinitd "${FILESDIR}"/pentoo-zram.initd-r3 pentoo-zram
newinitd "${FILESDIR}"/pentoo-zram.initd-r4 pentoo-zram
newconfd "${FILESDIR}"/pentoo-zram.confd pentoo-zram
fi
}