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:52:19 +0100 |
commit | e1edee656fc9c0a791c0eb62796d1afa483be34e (patch) | |
tree | b1f81ebf88be9a690174118d6a248f5743c190da /scripts/lib/mic/plugins/source | |
parent | 28c5249b4df46ba3ac227d0c4dc6e545b40dbaf3 (diff) | |
download | openembedded-core-e1edee656fc9c0a791c0eb62796d1afa483be34e.tar.gz openembedded-core-e1edee656fc9c0a791c0eb62796d1afa483be34e.tar.bz2 openembedded-core-e1edee656fc9c0a791c0eb62796d1afa483be34e.zip |
wic: Rename MountError
wic doesn't mount anything, so can't have a mount error; rename it to
something more appropriate.
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Diffstat (limited to 'scripts/lib/mic/plugins/source')
-rw-r--r-- | scripts/lib/mic/plugins/source/bootimg-efi.py | 2 | ||||
-rw-r--r-- | scripts/lib/mic/plugins/source/bootimg-pcbios.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/mic/plugins/source/bootimg-efi.py b/scripts/lib/mic/plugins/source/bootimg-efi.py index e880358103..5b1a5332c4 100644 --- a/scripts/lib/mic/plugins/source/bootimg-efi.py +++ b/scripts/lib/mic/plugins/source/bootimg-efi.py @@ -77,7 +77,7 @@ class BootimgEFIPlugin(SourcePlugin): if cr._ptable_format == 'msdos': rootstr = rootdev else: - raise MountError("Unsupported partition table format found") + raise ImageError("Unsupported partition table format found") grubefi_conf += "linux %s root=%s rootwait %s\n" \ % (kernel, rootstr, options) diff --git a/scripts/lib/mic/plugins/source/bootimg-pcbios.py b/scripts/lib/mic/plugins/source/bootimg-pcbios.py index 53ed7c3195..959cf411bf 100644 --- a/scripts/lib/mic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/mic/plugins/source/bootimg-pcbios.py @@ -62,7 +62,7 @@ class BootimgPcbiosPlugin(SourcePlugin): rc = runner.show(['dd', 'if=%s' % mbrfile, 'of=%s' % full_path, 'conv=notrunc']) if rc != 0: - raise MountError("Unable to set MBR to %s" % full_path) + raise ImageError("Unable to set MBR to %s" % full_path) @classmethod def do_configure_partition(self, part, cr, cr_workdir, oe_builddir, @@ -107,7 +107,7 @@ class BootimgPcbiosPlugin(SourcePlugin): if cr._ptable_format == 'msdos': rootstr = rootdev else: - raise MountError("Unsupported partition table format found") + raise ImageError("Unsupported partition table format found") syslinux_conf += "APPEND label=boot root=%s %s\n" % (rootstr, options) |