diff options
Diffstat (limited to 'scripts/lib/mic/plugins')
| -rw-r--r-- | scripts/lib/mic/plugins/source/bootimg-efi.py | 4 | ||||
| -rw-r--r-- | scripts/lib/mic/plugins/source/bootimg-pcbios.py | 8 |
2 files changed, 3 insertions, 9 deletions
diff --git a/scripts/lib/mic/plugins/source/bootimg-efi.py b/scripts/lib/mic/plugins/source/bootimg-efi.py index 95e1c059b9..d4a777198f 100644 --- a/scripts/lib/mic/plugins/source/bootimg-efi.py +++ b/scripts/lib/mic/plugins/source/bootimg-efi.py | |||
| @@ -78,9 +78,7 @@ class BootimgEFIPlugin(SourcePlugin): | |||
| 78 | if cr._ptable_format == 'msdos': | 78 | if cr._ptable_format == 'msdos': |
| 79 | rootstr = rootdev | 79 | rootstr = rootdev |
| 80 | else: | 80 | else: |
| 81 | if not root_part_uuid: | 81 | raise MountError("Unsupported partition table format found") |
| 82 | raise MountError("Cannot find the root GPT partition UUID") | ||
| 83 | rootstr = "PARTUUID=%s" % root_part_uuid | ||
| 84 | 82 | ||
| 85 | grubefi_conf += "linux %s root=%s rootwait %s\n" \ | 83 | grubefi_conf += "linux %s root=%s rootwait %s\n" \ |
| 86 | % (kernel, rootstr, options) | 84 | % (kernel, rootstr, options) |
diff --git a/scripts/lib/mic/plugins/source/bootimg-pcbios.py b/scripts/lib/mic/plugins/source/bootimg-pcbios.py index 9959645606..34343205ac 100644 --- a/scripts/lib/mic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/mic/plugins/source/bootimg-pcbios.py | |||
| @@ -50,9 +50,7 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
| 50 | disk image. In this case, we install the MBR. | 50 | disk image. In this case, we install the MBR. |
| 51 | """ | 51 | """ |
| 52 | mbrfile = "%s/syslinux/" % bootimg_dir | 52 | mbrfile = "%s/syslinux/" % bootimg_dir |
| 53 | if cr._ptable_format == 'gpt': | 53 | if cr._ptable_format == 'msdos': |
| 54 | mbrfile += "gptmbr.bin" | ||
| 55 | else: | ||
| 56 | mbrfile += "mbr.bin" | 54 | mbrfile += "mbr.bin" |
| 57 | 55 | ||
| 58 | if not os.path.exists(mbrfile): | 56 | if not os.path.exists(mbrfile): |
| @@ -110,9 +108,7 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
| 110 | if cr._ptable_format == 'msdos': | 108 | if cr._ptable_format == 'msdos': |
| 111 | rootstr = rootdev | 109 | rootstr = rootdev |
| 112 | else: | 110 | else: |
| 113 | if not root_part_uuid: | 111 | raise MountError("Unsupported partition table format found") |
| 114 | raise MountError("Cannot find the root GPT partition UUID") | ||
| 115 | rootstr = "PARTUUID=%s" % root_part_uuid | ||
| 116 | 112 | ||
| 117 | syslinux_conf += "APPEND label=boot root=%s %s\n" % (rootstr, options) | 113 | syslinux_conf += "APPEND label=boot root=%s %s\n" % (rootstr, options) |
| 118 | 114 | ||
