aboutsummaryrefslogtreecommitdiff
path: root/filesystem
diff options
context:
space:
mode:
Diffstat (limited to 'filesystem')
-rw-r--r--filesystem/mountpoint.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/filesystem/mountpoint.go b/filesystem/mountpoint.go
index c43e14e..861f5b1 100644
--- a/filesystem/mountpoint.go
+++ b/filesystem/mountpoint.go
@@ -134,12 +134,6 @@ func loadMountInfo() error {
continue
}
- // Skip invalid mountpoints
- var err error
- if mnt.Path, err = canonicalizePath(mnt.Path); err != nil {
- log.Printf("getting mnt_dir: %v", err)
- continue
- }
// We can only use mountpoints that are directories for fscrypt.
if !isDir(mnt.Path) {
log.Printf("ignoring mountpoint %q because it is not a directory", mnt.Path)
@@ -151,6 +145,7 @@ func loadMountInfo() error {
// filesystems are listed in mount order.
mountsByPath[mnt.Path] = mnt
+ var err error
mnt.Device, err = canonicalizePath(mnt.Device)
// Only use real valid devices (unlike cgroups, tmpfs, ...)
if err == nil && isDevice(mnt.Device) {