From e5f5a13cd6b25dcbde2415eb379a2a1c553d22d5 Mon Sep 17 00:00:00 2001 From: Yiyang Kang Date: Fri, 7 Oct 2022 02:42:08 +0800 Subject: [PATCH] fix: wrong device for mountpoint --- blk/blk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blk/blk.go b/blk/blk.go index 30dae52..a695224 100644 --- a/blk/blk.go +++ b/blk/blk.go @@ -231,7 +231,7 @@ func (m *Mounter) unmount() error { if len(dev.Children) > 0 { dev = dev.Children[0] } - mp := *m.dev.MountPoint + mp := *dev.MountPoint if err := util.SystemdUnmount(mp); err == nil { return nil