index.cgi exclude efivarfs from disk free check

on some systems this filesystem is always reported as full so
this is now excluded.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2024-03-03 09:03:22 +01:00
parent 6dd7451f11
commit d71c37a632

View File

@@ -564,6 +564,7 @@ my $temp2=();
my @df = `/bin/df -B M -P -x rootfs`;
foreach my $line (@df) {
next if $line =~ m/^Filesystem/;
next if $line =~ m/^efivarfs/;
if ($line =~ m/root/ ) {
$line =~ m/^.* (\d+)M.*$/;
@temp = split(/ +/,$line);