From 7017663e5eac76f5018b7201ca2f1a5ed3a5598c Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 26 Sep 2017 15:53:04 -0700 Subject: [PATCH] Skip /snap mounts https://www.virtualmin.com/node/53712 --- mount/mount-lib.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mount/mount-lib.pl b/mount/mount-lib.pl index 27a1225f6..c0891a520 100755 --- a/mount/mount-lib.pl +++ b/mount/mount-lib.pl @@ -348,6 +348,10 @@ foreach my $m (@mounted) { # Skip virtual memory next; } + if ($m->[2] eq "squashfs") { + # Skip /snap mounts + next; + } # Get the size - for ZFS mounts, this comes from the underlying # total pool size and free my ($t, $f);