mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix zram option
This commit is contained in:
parent
f9390379d8
commit
83570c9450
1 changed files with 2 additions and 2 deletions
|
@ -101,10 +101,10 @@ _umount_w_dir() {
|
|||
# fstrim <mountpoint> for manual action
|
||||
# it needs some seconds to get RAM free on delete!
|
||||
_zram_mount() {
|
||||
if ! mountpoint /usr; then
|
||||
if ! mountpoint -q /usr; then
|
||||
# add defaults
|
||||
_ZRAM_ALGORITHM=${_ZRAM_ALGORITHM:-"zstd"}
|
||||
modprobe -o num_devices=2 zram > /dev/tty7 2>&1
|
||||
modprobe zram num_devices=2> /dev/tty7 2>&1
|
||||
echo "${_ZRAM_ALGORITHM}" >/sys/block/zram0/comp_algorithm
|
||||
echo "${1}" >/sys/block/zram0/disksize
|
||||
echo "Creating btrfs filesystem with ${_DISKSIZE} on /dev/zram0 ..." > /dev/tty7
|
||||
|
|
Loading…
Reference in a new issue