mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-26 18:16:39 +01:00
pentoo-core: zram lz4->zstd
This commit is contained in:
parent
d0be96b452
commit
98e16334af
2 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
@ -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
|
||||
}
|
||||
Loading…
Reference in a new issue