diff options
Diffstat (limited to 'scripts/lib/mic/utils/partitionedfs.py')
-rw-r--r-- | scripts/lib/mic/utils/partitionedfs.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lib/mic/utils/partitionedfs.py b/scripts/lib/mic/utils/partitionedfs.py index f4ce4a9dee..68e4cabbe0 100644 --- a/scripts/lib/mic/utils/partitionedfs.py +++ b/scripts/lib/mic/utils/partitionedfs.py | |||
@@ -22,7 +22,7 @@ import os | |||
22 | 22 | ||
23 | from mic import msger | 23 | from mic import msger |
24 | from mic.utils import runner | 24 | from mic.utils import runner |
25 | from mic.utils.errors import MountError | 25 | from mic.utils.errors import ImageError |
26 | from mic.utils.fs_related import * | 26 | from mic.utils.fs_related import * |
27 | from mic.utils.oe.misc import * | 27 | from mic.utils.oe.misc import * |
28 | 28 | ||
@@ -121,7 +121,7 @@ class Image: | |||
121 | msger.debug("Assigning %s partitions to disks" % ptable_format) | 121 | msger.debug("Assigning %s partitions to disks" % ptable_format) |
122 | 122 | ||
123 | if ptable_format not in ('msdos'): | 123 | if ptable_format not in ('msdos'): |
124 | raise MountError("Unknown partition table format '%s', supported " \ | 124 | raise ImageError("Unknown partition table format '%s', supported " \ |
125 | "formats are: 'msdos'" % ptable_format) | 125 | "formats are: 'msdos'" % ptable_format) |
126 | 126 | ||
127 | if self._partitions_layed_out: | 127 | if self._partitions_layed_out: |
@@ -134,14 +134,14 @@ class Image: | |||
134 | p = self.partitions[n] | 134 | p = self.partitions[n] |
135 | 135 | ||
136 | if not self.disks.has_key(p['disk_name']): | 136 | if not self.disks.has_key(p['disk_name']): |
137 | raise MountError("No disk %s for partition %s" \ | 137 | raise ImageError("No disk %s for partition %s" \ |
138 | % (p['disk_name'], p['mountpoint'])) | 138 | % (p['disk_name'], p['mountpoint'])) |
139 | 139 | ||
140 | if p['part_type']: | 140 | if p['part_type']: |
141 | # The --part-type can also be implemented for MBR partitions, | 141 | # The --part-type can also be implemented for MBR partitions, |
142 | # in which case it would map to the 1-byte "partition type" | 142 | # in which case it would map to the 1-byte "partition type" |
143 | # filed at offset 3 of the partition entry. | 143 | # filed at offset 3 of the partition entry. |
144 | raise MountError("setting custom partition type is not " \ | 144 | raise ImageError("setting custom partition type is not " \ |
145 | "implemented for msdos partitions") | 145 | "implemented for msdos partitions") |
146 | 146 | ||
147 | # Get the disk where the partition is located | 147 | # Get the disk where the partition is located |