wic/bootimg-efi: replace hardcoded volume name with label
PATCH v2 1/1 wic/bootimg-efi: replace hardcoded volume name with label
From: Chee Yang Lee <[email protected]>
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 <[email protected]>
--- scripts/lib/wic/plugins/source/bootimg-efi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
scripts/lib/wic/plugins/source/bootimg-efi.py +4 -2
@@ -254,8 +254,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)
Signature · 1 line
2.7.4
Quoted 7 lines · On Mon, May 13, 2019 at 12:07:09PM +0800, [email protected] wrote:
From: Chee Yang Lee <[email protected]>
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 <[email protected]>
Reviewed-by Tom Rini <[email protected]>
Signature · 1 line
Tom