diff options
Diffstat (limited to 'scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py')
-rw-r--r-- | scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py index cdd7c84c12..50b221382c 100644 --- a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py +++ b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py | |||
@@ -101,7 +101,7 @@ class RootfsPlugin(SourcePlugin): | |||
101 | syslinux_conf += "LABEL linux\n" | 101 | syslinux_conf += "LABEL linux\n" |
102 | syslinux_conf += " KERNEL /boot/bzImage\n" | 102 | syslinux_conf += " KERNEL /boot/bzImage\n" |
103 | 103 | ||
104 | if image_creator._ptable_format in ('msdos', 'gpt'): | 104 | if image_creator.ptable_format in ('msdos', 'gpt'): |
105 | rootstr = rootdev | 105 | rootstr = rootdev |
106 | else: | 106 | else: |
107 | raise ImageError("Unsupported partition table format found") | 107 | raise ImageError("Unsupported partition table format found") |
@@ -170,13 +170,13 @@ class RootfsPlugin(SourcePlugin): | |||
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/") | 172 | mbrfile = os.path.join(native_sysroot, "usr/share/syslinux/") |
173 | if image_creator._ptable_format == 'msdos': | 173 | if image_creator.ptable_format == 'msdos': |
174 | mbrfile += "mbr.bin" | 174 | mbrfile += "mbr.bin" |
175 | elif image_creator._ptable_format == 'gpt': | 175 | elif image_creator.ptable_format == 'gpt': |
176 | mbrfile += "gptmbr.bin" | 176 | mbrfile += "gptmbr.bin" |
177 | else: | 177 | else: |
178 | msger.error("Unsupported partition table: %s" % \ | 178 | msger.error("Unsupported partition table: %s" % \ |
179 | image_creator._ptable_format) | 179 | image_creator.ptable_format) |
180 | 180 | ||
181 | if not os.path.exists(mbrfile): | 181 | if not os.path.exists(mbrfile): |
182 | 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) |