Skip to content

determining space requirement not working for longer block device names #24

@tomjtoth

Description

@tomjtoth

I have LVM on LUKS so my root partition looks like /dev/mapper/lvmLALA which makes df -m /local_root/ produce 3 lines instead of 2. I'm unfamiliar with awk, you could probably improve this hotfix, I also appended "line" to the local variables:

line=$(df -m /local_root/ | awk 'NR>1 {print}')
zram=$((zram+$(echo $line | awk '{print int($3)}')))
umount /local_root 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions