From 7a117cd455c683890c5b2251f1d0a52cc4bcae8b Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 5 May 2024 14:50:04 +0200 Subject: [PATCH] filesystem-functions.pl: is_btrfs() Skip volumes without a mount point Signed-off-by: Stefan Schantl --- config/cfgroot/filesystem-functions.pl | 3 +++ 1 file changed, 3 insertions(+) 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"); -- 2.39.5