Skip to content

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

@Adbekunkus

Description

@Adbekunkus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions