ramroot
ramroot copied to clipboard
determining space requirement not working for longer block device names
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
Could you paste the output of df -m /local_root/?

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