]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
index.cgi exclude efivarfs from disk free check
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 3 Mar 2024 08:03:22 +0000 (09:03 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 3 Mar 2024 08:03:22 +0000 (09:03 +0100)
on some systems this filesystem is always reported as full so
this is now excluded.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
html/cgi-bin/index.cgi

index 65773244c5d67bed9ac7dc6abde32a58f09a94c0..5e32ce038196058e735e32e44ad65e4461316552 100644 (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);