diff options
Diffstat (limited to 'scripts/lib/wic/plugins/source/bootimg-pcbios.py')
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-pcbios.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py index dd49480141..5caffbc8e2 100644 --- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py | |||
@@ -103,12 +103,8 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
103 | kernel = "/vmlinuz" | 103 | kernel = "/vmlinuz" |
104 | syslinux_conf += "KERNEL " + kernel + "\n" | 104 | syslinux_conf += "KERNEL " + kernel + "\n" |
105 | 105 | ||
106 | if cr.ptable_format in ('msdos', 'gpt'): | 106 | syslinux_conf += "APPEND label=boot root=%s %s\n" % \ |
107 | rootstr = cr.rootdev | 107 | (cr.rootdev, options) |
108 | else: | ||
109 | raise ImageError("Unsupported partition table format found") | ||
110 | |||
111 | syslinux_conf += "APPEND label=boot root=%s %s\n" % (rootstr, options) | ||
112 | 108 | ||
113 | msger.debug("Writing syslinux config %s/hdd/boot/syslinux.cfg" \ | 109 | msger.debug("Writing syslinux config %s/hdd/boot/syslinux.cfg" \ |
114 | % cr_workdir) | 110 | % cr_workdir) |