Merge pull request #21830 from anusha-ragunathan/auplink

Be more lenient on auplink errors.
This commit is contained in:
Vincent Demeester 2016-04-07 09:19:38 +02:00
commit 8785952282

View file

@ -12,7 +12,7 @@ import (
// Unmount the target specified.
func Unmount(target string) error {
if err := exec.Command("auplink", target, "flush").Run(); err != nil {
logrus.Errorf("Couldn't run auplink before unmount %s: %s", target, err)
logrus.Warnf("Couldn't run auplink before unmount %s: %s", target, err)
}
if err := syscall.Unmount(target, 0); err != nil {
return err