Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tomjtoth opened this issue Sep 1, 2022 · 2 comments
Open

Comments

@tomjtoth
Copy link

tomjtoth commented Sep 1, 2022

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 
@arcmags
Copy link
Owner

arcmags commented Sep 4, 2022

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

@tomjtoth
Copy link
Author

tomjtoth commented Sep 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants