fix: wrong device for mountpoint
This commit is contained in:
parent
884ba3d82d
commit
e5f5a13cd6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue