summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-04-08 18:52:51 +0000
committerIgor Pashev <pashev.igor@gmail.com>2013-04-08 18:52:51 +0000
commit42ca9c3284fa99526681e4cb8d3d2a57757e8980 (patch)
tree7016421024b3916d53b4fc63074bf4256c47f4aa /install
parentc3fcc67ad75639c1f43081afd91f55f56861af66 (diff)
downloadlive-42ca9c3284fa99526681e4cb8d3d2a57757e8980.tar.gz
Do not use progress bar when searching for zpools
Diffstat (limited to 'install')
-rwxr-xr-xinstall5
1 files changed, 1 insertions, 4 deletions
diff --git a/install b/install
index 7b4ea6f..6587a58 100755
--- a/install
+++ b/install
@@ -58,17 +58,14 @@ Whould you like to continue?''',
def find_zpools():
global zpools
- progress = ProgressBar(screen, title='Please, wait', text='Searching for ZFS pools ...')
- progress.progress = 10
+ progress = ProgressMessage(screen, title='Please, wait', text='Searching for ZFS pools ...')
zpools = []
zpool_cmd = Popen(['zpool', 'list', '-H', '-o', 'name'], stdout=PIPE, stderr=PIPE)
for line in zpool_cmd.stdout:
zpools.append(line.rstrip())
- progress.progress = 50
zpool_cmd = Popen("zpool import | awk '/pool:/ {print $2}'", shell=True, stdout=PIPE, stderr=PIPE)
for line in zpool_cmd.stdout:
zpools.append(line.rstrip())
- progress.progress = 100
def find_hdds():
global hdds