os-prober-umount-fix.patch 400 B

12345678910111213141516171819
  1. Index: os-prober/common.sh
  2. ===================================================================
  3. --- os-prober.orig/common.sh
  4. +++ os-prober/common.sh
  5. @@ -336,3 +336,13 @@ linux_mount_boot () {
  6. mountboot="$bootpart $mounted"
  7. }
  8. +
  9. +umount_exec=$(which umount)
  10. +umount() {
  11. + if ! $umount_exec $@ 2> /dev/null; then
  12. + error "umount error, retrying after 1 sec"
  13. + sleep 1
  14. + $umount_exec $@
  15. + fi
  16. +}
  17. +