Skip to content

Commit 923cf45

Browse files
karlitschekkesselb
authored andcommitted
fix(disk): ignore efivarfs pseudo-mount
The efivarfs filesystem exposes EFI variables and reports as 100% full, which is correct for the kernel but misleading on the serverinfo dashboard. Treat it the same as tmpfs/devtmpfs/squashfs/ overlay and skip it in disk reporting. Signed-off-by: Frank Karlitschek <karlitschek@users.noreply.github.com>
1 parent 3fc7d53 commit 923cf45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/OperatingSystems/Linux.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function getDiskInfo(): array {
204204
}
205205

206206
foreach ($matches['Filesystem'] as $i => $filesystem) {
207-
if (in_array($matches['Type'][$i], ['tmpfs', 'devtmpfs', 'squashfs', 'overlay'], false)) {
207+
if (in_array($matches['Type'][$i], ['tmpfs', 'devtmpfs', 'squashfs', 'overlay', 'efivarfs'], false)) {
208208
continue;
209209
} elseif (in_array($matches['Mounted'][$i], ['/etc/hostname', '/etc/hosts'], false)) {
210210
continue;

0 commit comments

Comments
 (0)