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