[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH] image_hd: nicht einfach andere Prozesse killen
! image_hd: Prozesse die das unmounten verhindern nicht gleich töten
sondern warten bis den Mountpoint freiwillig hergeben
Signed-off-by: Andreas Freimuth <m.nemo@xxxxxxx>
---
build/scripts/image_hd_grub1 | 2 +-
build/scripts/image_hd_grub2 | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/build/scripts/image_hd_grub1 b/build/scripts/image_hd_grub1
index 402f68e..6f29243 100755
--- a/build/scripts/image_hd_grub1
+++ b/build/scripts/image_hd_grub1
@@ -106,7 +106,7 @@ if [ $NEW -ne 0 ]; then
fi
# Partition unmounten und loopback-Device freigeben
-fuser -km $MOUNT
+while fuser -m $MOUNT; do true; done
$SUDO umount $MOUNT
rmdir $MOUNT
diff --git a/build/scripts/image_hd_grub2 b/build/scripts/image_hd_grub2
index a49c3fc..cddc78b 100755
--- a/build/scripts/image_hd_grub2
+++ b/build/scripts/image_hd_grub2
@@ -131,7 +131,7 @@ EOF
fi
# Partition unmounten und loopback-Device freigeben
-fuser -km $MOUNT
+while fuser -m $MOUNT; do true; done
$SUDO umount $MOUNT
rmdir $MOUNT
--
1.7.3.4