summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py')
-rw-r--r--scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py
index 29c873dc7b..cdd7c84c12 100644
--- a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py
+++ b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py
@@ -169,7 +169,15 @@ class RootfsPlugin(SourcePlugin):
169 Called after all partitions have been prepared and assembled into a 169 Called after all partitions have been prepared and assembled into a
170 disk image. In this case, we install the MBR. 170 disk image. In this case, we install the MBR.
171 """ 171 """
172 mbrfile = os.path.join(native_sysroot, "usr/share/syslinux/mbr.bin") 172 mbrfile = os.path.join(native_sysroot, "usr/share/syslinux/")
173 if image_creator._ptable_format == 'msdos':
174 mbrfile += "mbr.bin"
175 elif image_creator._ptable_format == 'gpt':
176 mbrfile += "gptmbr.bin"
177 else:
178 msger.error("Unsupported partition table: %s" % \
179 image_creator._ptable_format)
180
173 if not os.path.exists(mbrfile): 181 if not os.path.exists(mbrfile):
174 msger.error("Couldn't find %s. Has syslinux-native been baked?" % mbrfile) 182 msger.error("Couldn't find %s. Has syslinux-native been baked?" % mbrfile)
175 183