diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-08-08 15:11:31 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-11 10:53:12 +0100 |
commit | ff1aa2358eb31f21c3acdb980633f5bbc77bda77 (patch) | |
tree | 45c56fac452e19b46d51d445e886183f97f0e8c0 /scripts/lib/mic/utils/partitionedfs.py | |
parent | 312479cf075fc614afb9588412c03d716c850ab6 (diff) | |
download | poky-ff1aa2358eb31f21c3acdb980633f5bbc77bda77.tar.gz |
wic: Rename MountError
wic doesn't mount anything, so can't have a mount error; rename it to
something more appropriate.
(From OE-Core rev: e1edee656fc9c0a791c0eb62796d1afa483be34e)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 |