diff options
author | Chee Yang Lee <chee.yang.lee@intel.com> | 2019-05-13 12:07:09 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-05-17 21:55:43 -0700 |
commit | becb0a3f855eff7700fa284a0a7981d6a260a1c5 (patch) | |
tree | e378d240f112b1b2603506a3efc41fa92b35cc5e | |
parent | 7d0dfd6ada9b2fdf0c14833c388730ffc887af49 (diff) | |
download | openembedded-core-becb0a3f855eff7700fa284a0a7981d6a260a1c5.tar.gz openembedded-core-becb0a3f855eff7700fa284a0a7981d6a260a1c5.tar.bz2 openembedded-core-becb0a3f855eff7700fa284a0a7981d6a260a1c5.zip |
wic/bootimg-efi: replace hardcoded volume name with label
volume name should refer to --label in .wks.
Replace the hardcoded volume name with label.
set "ESP" as default name when no lable specified.
Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-efi.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py index 0eb86a079f..1269818464 100644 --- a/scripts/lib/wic/plugins/source/bootimg-efi.py +++ b/scripts/lib/wic/plugins/source/bootimg-efi.py @@ -256,8 +256,10 @@ class BootimgEFIPlugin(SourcePlugin): # dosfs image, created by mkdosfs bootimg = "%s/boot.img" % cr_workdir - dosfs_cmd = "mkdosfs -n efi -i %s -C %s %d" % \ - (part.fsuuid, bootimg, blocks) + label = part.label if part.label else "ESP" + + dosfs_cmd = "mkdosfs -n %s -i %s -C %s %d" % \ + (label, part.fsuuid, bootimg, blocks) exec_native_cmd(dosfs_cmd, native_sysroot) mcopy_cmd = "mcopy -i %s -s %s/* ::/" % (bootimg, hdddir) |