diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-06-13 14:21:52 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-14 10:18:28 +0100 |
commit | 479c6a85af2a8572f807fdd12c842880fec8b78c (patch) | |
tree | 0105f768e658e2f42a2580e0ff6e35597646cf93 /scripts/lib/wic/plugins | |
parent | 16562e7672af2c8762d3d089605de48e88905de0 (diff) | |
download | poky-479c6a85af2a8572f807fdd12c842880fec8b78c.tar.gz |
bootimg-pcbios: make boot image file unique
Plugin code uses boot.img file name for an image file. If there are
two partitions that use bootimg-pcbios wic breaks with an error
"file already exists: boot.img"
Made image file name unique by adding wks like number to it to fix
the issue.
(From OE-Core rev: eec6e946cce36cba304851fa4a1c1d7bfd7b0bed)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins')
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-pcbios.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py index 5890c1267b..98ad88b03e 100644 --- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py | |||
@@ -186,7 +186,7 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
186 | extra_blocks, part.mountpoint, blocks) | 186 | extra_blocks, part.mountpoint, blocks) |
187 | 187 | ||
188 | # dosfs image, created by mkdosfs | 188 | # dosfs image, created by mkdosfs |
189 | bootimg = "%s/boot.img" % cr_workdir | 189 | bootimg = "%s/boot%s.img" % (cr_workdir, part.lineno) |
190 | 190 | ||
191 | dosfs_cmd = "mkdosfs -n boot -S 512 -C %s %d" % (bootimg, blocks) | 191 | dosfs_cmd = "mkdosfs -n boot -S 512 -C %s %d" % (bootimg, blocks) |
192 | exec_native_cmd(dosfs_cmd, native_sysroot) | 192 | exec_native_cmd(dosfs_cmd, native_sysroot) |