summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-31 14:06:09 +0200
committerErich Eckner <git@eckner.net>2019-07-31 14:06:09 +0200
commitdd2b31cbeff58a6377d31c58d165bb9d6d31d3c6 (patch)
treead227096b7be846f82b7f96bb9a09b5ef9f7cdf2
parent990b65c2b20dd6625bd442556104e96239899022 (diff)
downloadkamikaze-fsck-dd2b31cbeff58a6377d31c58d165bb9d6d31d3c6.tar.xz
kamikaze-fsck: do not kill -9 e2fsck
-rwxr-xr-xkamikaze-fsck4
1 files changed, 1 insertions, 3 deletions
diff --git a/kamikaze-fsck b/kamikaze-fsck
index 222b3f5..6ab7dd6 100755
--- a/kamikaze-fsck
+++ b/kamikaze-fsck
@@ -55,11 +55,9 @@ while [ -f "${tmp_dir}/faulty-inode" ]; do
>&2 date
pkill -xf "e2fsck -f -y $1 -E no_optimize_extents,fixes_only -C 0"
- sleep 20
- >&2 date
- pkill -9 -xf "e2fsck -f -y $1 -E no_optimize_extents,fixes_only -C 0"
while pgrep -xf "e2fsck -f -y $1 -E no_optimize_extents,fixes_only -C 0"; do
sleep 1
+ >&2 date
done
break
fi