From: Stefan Schantl Date: Sun, 5 May 2024 12:50:04 +0000 (+0200) Subject: filesystem-functions.pl: is_btrfs() Skip volumes without a mount point X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a117cd455c683890c5b2251f1d0a52cc4bcae8b;p=people%2Fstevee%2Fipfire-2.x.git filesystem-functions.pl: is_btrfs() Skip volumes without a mount point Signed-off-by: Stefan Schantl --- diff --git a/config/cfgroot/filesystem-functions.pl b/config/cfgroot/filesystem-functions.pl index 22f0902b5..58bacfea2 100644 --- a/config/cfgroot/filesystem-functions.pl +++ b/config/cfgroot/filesystem-functions.pl @@ -527,6 +527,9 @@ sub is_btrfs($) { # Loop through the hash of volumes. foreach my $volume (sort keys %volumes) { + # Skip volumes which do not have a mount point. + next unless ($volumes{$volume}{'mpoint'}); + # Skip volume if it is not mounted to the requested mpoint. next unless ($volumes{$volume}{'mpoint'} eq "$mpoint");