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

When an ecryptfs volume is present, the Disk section displays double the space. #803

Open
Adbekunkus opened this issue Sep 16, 2024 · 0 comments
Labels

Comments

@Adbekunkus
Copy link

I'm submitting a ... (check one with "x")

[x] bug report
[ ] new distro request

Bug report
As the title says, when running this script and in the presence of an Ecryptfs volume, the Disk shows double the space (available and total). Percentage obviously is right.

I have a solution: define the function

df () {
	os_type=$(uname -a | cut -d' ' -f1)
	if [ "$os_type" == "Linux" ]
	then
		$(which df) -x ecryptfs $@
	else
		$(which df) -t noecryptfs $@
	fi
}

I defined it just before the detectdisk funciton. I've tested it on Debian Testing and on FreeBSD 14.1.

 => cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian

@KittyKatt KittyKatt added the bug label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants