]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
filesystem-functions.pl: is_btrfs() Skip volumes without a mount point
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 3 Jul 2025 14:55:00 +0000 (16:55 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 3 Jul 2025 14:55:00 +0000 (16:55 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/filesystem-functions.pl

index 7c986b657ab505641c1639c3e801cfed4d213fe0..ac1b3f7eb55efd9c10b18dc392fd59fcdce0e031 100644 (file)
@@ -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");