direct zram creation to /dev/tty7

This commit is contained in:
Tobias Powalowski 2022-05-07 08:21:16 +02:00
parent 8e46f5cd30
commit 18201bb535

View file

@ -99,7 +99,7 @@ _umount_w_dir() {
_zram_mount() {
# add defaults
_ZRAM_ALGORITHM=${_ZRAM_ALGORITHM:-"zstd"}
modprobe zram 2>/dev/null
modprobe zram > /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
@ -109,7 +109,7 @@ _zram_mount() {
# (online fstrimming the block device!)
# fstrim <mountpoint> for manual action
# it needs some seconds to get RAM free on delete!
mount -o discard /dev/zram0 "${_W_DIR}"
mount -o discard /dev/zram0 "${_W_DIR}" > /dev/tty7 2>&1
}
_clean_archboot() {