fix: wrong device for mountpoint

This commit is contained in:
Yiyang Kang 2022-10-07 02:42:08 +08:00
parent 884ba3d82d
commit e5f5a13cd6
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ func (m *Mounter) unmount() error {
if len(dev.Children) > 0 { if len(dev.Children) > 0 {
dev = dev.Children[0] dev = dev.Children[0]
} }
mp := *m.dev.MountPoint mp := *dev.MountPoint
if err := util.SystemdUnmount(mp); err == nil { if err := util.SystemdUnmount(mp); err == nil {
return nil return nil