From 1d42bf91268941c1761a81018adfdda3bca544f3 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Thu, 23 Apr 2026 13:47:17 +0300 Subject: [PATCH] Hide snap mounts --- src/stormfetch/partitions.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/stormfetch/partitions.go b/src/stormfetch/partitions.go index 09b5489..118439f 100644 --- a/src/stormfetch/partitions.go +++ b/src/stormfetch/partitions.go @@ -62,6 +62,11 @@ func GetMountedPartitions(hiddenPartitions, hiddenFilesystems []string) []partit continue } + // Skip snap mountpoints + if strings.HasPrefix(fields[1], "/snap/") { + continue + } + // Skip partition if explicitly hidden if slices.Contains(hiddenPartitions, fields[0]) { continue