summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-04-07 23:53:12 +0000
committerIgor Pashev <pashev.igor@gmail.com>2013-04-07 23:53:12 +0000
commita1cdd17dfabce1af89ba7c53d28ca52ab9097f8e (patch)
tree413c11b3ecc0c316471ec7249aadcb14cb9481b3 /install
parent95ad1ab29d516ae49916e0a54ac53276c901de6a (diff)
downloadlive-a1cdd17dfabce1af89ba7c53d28ca52ab9097f8e.tar.gz
More progress messages
Diffstat (limited to 'install')
-rwxr-xr-xinstall13
1 files changed, 10 insertions, 3 deletions
diff --git a/install b/install
index 1b78714..55ff758 100755
--- a/install
+++ b/install
@@ -58,7 +58,7 @@ Whould you like to continue?''',
def find_zpools():
global zpools
- progress = ProgressBar(screen, title='Searching for zpools')
+ progress = ProgressBar(screen, title='Please, wait', text='Searching for ZFS pools ...')
progress.progress = 10
zpools = []
zpool_cmd = Popen(['zpool', 'list', '-H', '-o', 'name'], stdout=PIPE, stderr=PIPE)
@@ -72,7 +72,7 @@ def find_zpools():
def find_hdds():
global hdds
- progress = ProgressMessage(screen, title='Please, wait', text='Searching for disks...')
+ progress = ProgressMessage(screen, title='Please, wait', text='Searching for disks ...')
hdds = []
pat = re.compile('\d+\.\s+(\S+)\s+<(.+?)(\s+cyl.*)?>')
format_cmd = Popen('format </dev/null', shell=True, stdout=PIPE)
@@ -114,6 +114,9 @@ def choose_rpool():
def create_root_slice(hdd_name):
'''Create root slice (0) over entire Solaris partition'''
+ progress = ProgressMessage(screen, title='Please, wait',
+ text='Formatting Solaris partition on disk "{}" ...'.format(hdd_name))
+
fd, path = mkstemp()
os.write(fd, 'partition\nmodify\n1\nyes\n0\n\n\n\n\n\n\nyes\n"{label}"\nquit\nquit\n'.format(label=hdd_name))
os.close(fd)
@@ -137,6 +140,9 @@ def create_rpool(hdd):
if not pool_name in zpools:
break
+ progress = ProgressMessage(screen, title='Please, wait',
+ text='Creating ZFS pool "{rpool}" on slice "{slice}" ...'.format(rpool=pool_name, slice=rslice))
+
zpool_cmd = Popen(['zpool', 'create', '-f', pool_name, rslice],
stderr=PIPE, stdout=PIPE)
out, err = zpool_cmd.communicate()
@@ -163,7 +169,8 @@ def configure_rpool():
rpool = create_rpool(hdd)
if rpool:
if not pool_is_imported(rpool):
- progress = ProgressMessage(screen, title='Please, wait', text='Importing ZFS pool "{}"...'.format(rpool))
+ progress = ProgressMessage(screen, title='Please, wait',
+ text='Importing ZFS pool "{}" ...'.format(rpool))
zpool_cmd = Popen(['zpool', 'import', '-f', rpool], stderr=PIPE, stdout=PIPE)
out, err = zpool_cmd.communicate()
if 0 != zpool_cmd.returncode: