mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
check on usr.zram
This commit is contained in:
parent
6a75e39458
commit
70bd3cba44
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ _zram_initialize() {
|
|||
# fstrim <mountpoint> for manual action
|
||||
# it needs some seconds to get RAM free on delete!
|
||||
_zram_usr() {
|
||||
if ! [[ -h /usr ]]; then
|
||||
if ! [[ -d /usr.zram ]]; then
|
||||
echo "${1}" >/sys/block/zram0/disksize
|
||||
echo "Creating btrfs filesystem with ${1} on /dev/zram0 ..." > /dev/tty7
|
||||
mkfs.btrfs -q --mixed /dev/zram0 > /dev/tty7 2>&1
|
||||
|
|
Loading…
Reference in a new issue