blob: b2606d7699a2f0c51e7beb728ae9d3feed89e4b4 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From f53481dc4a56b8a996628733553e080bb0aafdd7 Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Hongxu Jia <hongxu.jia@windriver.com>
Brad Bishop19323692019-04-05 15:28:33 -04003Date: Fri, 23 Nov 2018 17:07:22 +0800
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004Subject: [PATCH 07/11] invoking mount with infinite timeout
5
6This large timeout is needed when running on machines with
7lots of disks, or with slow disks.
8
9Upstream-Status: Pending
10
11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
12---
13 blivet/util.py | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/blivet/util.py b/blivet/util.py
Brad Bishop19323692019-04-05 15:28:33 -040017index 5571e73..02c8033 100644
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080018--- a/blivet/util.py
19+++ b/blivet/util.py
Brad Bishop19323692019-04-05 15:28:33 -040020@@ -258,7 +258,7 @@ def mount(device, mountpoint, fstype, options=None):
21 makedirs(mountpoint)
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080022
23 argv = ["mount", "-t", fstype, "-o", options, device, mountpoint]
Brad Bishop19323692019-04-05 15:28:33 -040024- return run_program(argv)
25+ return run_program(argv, timeout=-1)
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080026
Brad Bishop19323692019-04-05 15:28:33 -040027
28 def umount(mountpoint):
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080029--
302.7.4
31