summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-extended/python-blivet/python3-blivet/0011-invoking-fsck-with-infinite-timeout.patch
blob: c61fe01b946258182b3c8035ab86375297b02f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From e9ab4376a18cc1bd413c000b036320833eec80d7 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Thu, 1 Jun 2017 16:05:27 +0800
Subject: [PATCH 11/13] invoking fsck with infinite timeout

This large timeout is needed when running on machines with
lots of disks, or with slow disks.

Upstream-Status: Pending

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 blivet/tasks/fsck.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/tasks/fsck.py b/blivet/tasks/fsck.py
index c4214dc..e13ac6b 100644
--- a/blivet/tasks/fsck.py
+++ b/blivet/tasks/fsck.py
@@ -77,7 +77,7 @@ class FSCK(task.BasicApplication, fstask.FSTask):
             raise FSError("\n".join(error_msgs))
 
         try:
-            rc = util.run_program(self._fsck_command)
+            rc = util.run_program(self._fsck_command, timeout=-1)
         except OSError as e:
             raise FSError("filesystem check failed: %s" % e)
 
-- 
2.7.4