ramroot icon indicating copy to clipboard operation
ramroot copied to clipboard

determining space requirement not working for longer block device names

Open tomjtoth opened this issue 3 years ago • 2 comments

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 

tomjtoth avatar Sep 01 '22 19:09 tomjtoth

Could you paste the output of df -m /local_root/?

arcmags avatar Sep 04 '22 19:09 arcmags

IMG20220901221558~2

This is taken from early userspace via break=premount only i mounted it in the wrong directory, still you can see the additional line

tomjtoth avatar Sep 05 '22 05:09 tomjtoth