diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-04-08 18:52:51 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-04-08 18:52:51 +0000 |
commit | 42ca9c3284fa99526681e4cb8d3d2a57757e8980 (patch) | |
tree | 7016421024b3916d53b4fc63074bf4256c47f4aa /install | |
parent | c3fcc67ad75639c1f43081afd91f55f56861af66 (diff) | |
download | live-42ca9c3284fa99526681e4cb8d3d2a57757e8980.tar.gz |
Do not use progress bar when searching for zpools
Diffstat (limited to 'install')
-rwxr-xr-x | install | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 |