summaryrefslogtreecommitdiffstats
path: root/scripts/lib/mic/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/mic/plugins')
-rw-r--r--scripts/lib/mic/plugins/source/bootimg-efi.py2
-rw-r--r--scripts/lib/mic/plugins/source/bootimg-pcbios.py4
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):
77 if cr._ptable_format == 'msdos': 77 if cr._ptable_format == 'msdos':
78 rootstr = rootdev 78 rootstr = rootdev
79 else: 79 else:
80 raise MountError("Unsupported partition table format found") 80 raise ImageError("Unsupported partition table format found")
81 81
82 grubefi_conf += "linux %s root=%s rootwait %s\n" \ 82 grubefi_conf += "linux %s root=%s rootwait %s\n" \
83 % (kernel, rootstr, options) 83 % (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):
62 rc = runner.show(['dd', 'if=%s' % mbrfile, 62 rc = runner.show(['dd', 'if=%s' % mbrfile,
63 'of=%s' % full_path, 'conv=notrunc']) 63 'of=%s' % full_path, 'conv=notrunc'])
64 if rc != 0: 64 if rc != 0:
65 raise MountError("Unable to set MBR to %s" % full_path) 65 raise ImageError("Unable to set MBR to %s" % full_path)
66 66
67 @classmethod 67 @classmethod
68 def do_configure_partition(self, part, cr, cr_workdir, oe_builddir, 68 def do_configure_partition(self, part, cr, cr_workdir, oe_builddir,
@@ -107,7 +107,7 @@ class BootimgPcbiosPlugin(SourcePlugin):
107 if cr._ptable_format == 'msdos': 107 if cr._ptable_format == 'msdos':
108 rootstr = rootdev 108 rootstr = rootdev
109 else: 109 else:
110 raise MountError("Unsupported partition table format found") 110 raise ImageError("Unsupported partition table format found")
111 111
112 syslinux_conf += "APPEND label=boot root=%s %s\n" % (rootstr, options) 112 syslinux_conf += "APPEND label=boot root=%s %s\n" % (rootstr, options)
113 113