Skip to content
Snippets Groups Projects
Commit 835171dc authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix minor typos

parent f99fe99d
No related branches found
No related tags found
No related merge requests found
...@@ -375,8 +375,9 @@ def kamaki_menu(session): ...@@ -375,8 +375,9 @@ def kamaki_menu(session):
(code, choice) = d.menu( (code, choice) = d.menu(
text="Choose one of the following or press <Back> to go back.", text="Choose one of the following or press <Back> to go back.",
width=MENU_WIDTH, choices=choices, cancel="Back", width=MENU_WIDTH, choices=choices, cancel="Back", height=13,
default_item=default_item, title="Image Registration Menu") menu_height=5, default_item=default_item,
title="Image Registration Menu")
if code in (d.DIALOG_CANCEL, d.DIALOG_ESC): if code in (d.DIALOG_CANCEL, d.DIALOG_ESC):
return False return False
...@@ -607,7 +608,7 @@ def sysprep(session): ...@@ -607,7 +608,7 @@ def sysprep(session):
syspreps = [s for s in all_syspreps if s not in session['exec_syspreps']] syspreps = [s for s in all_syspreps if s not in session['exec_syspreps']]
if len(syspreps) == 0: if len(syspreps) == 0:
d.msgbox("No system preparation task left to run!", width=MSGBOX_WIDTH) d.msgbox("No system preparation task available to run!", title="System Preperation", width=MSGBOX_WIDTH)
return return
while 1: while 1:
...@@ -677,7 +678,8 @@ def shrink(session): ...@@ -677,7 +678,8 @@ def shrink(session):
shrinked = 'shrinked' in session and session['shrinked'] shrinked = 'shrinked' in session and session['shrinked']
if shrinked: if shrinked:
d.msgbox("You have already shrinked your image!") d.msgbox("The image is already shrinked!", title="Image Shrinking",
width=MSGBOX_WIDTH)
return True return True
msg = "This operation will shrink the last partition of the image to " \ msg = "This operation will shrink the last partition of the image to " \
......
...@@ -210,7 +210,7 @@ class DiskDevice(object): ...@@ -210,7 +210,7 @@ class DiskDevice(object):
raise FatalError("No operating system found") raise FatalError("No operating system found")
if len(roots) > 1: if len(roots) > 1:
raise FatalError("Multiple operating systems found." raise FatalError("Multiple operating systems found."
"We only support images with one filesystem.") "We only support images with one OS.")
self.root = roots[0] self.root = roots[0]
self.guestfs_device = self.g.part_to_dev(self.root) self.guestfs_device = self.g.part_to_dev(self.root)
self.meta['SIZE'] = self.g.blockdev_getsize64(self.guestfs_device) self.meta['SIZE'] = self.g.blockdev_getsize64(self.guestfs_device)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment