From 37195a525f673037ef43e8dc200f6a3d4b388cb4 Mon Sep 17 00:00:00 2001 From: Jussi Laako Date: Mon, 20 Feb 2017 18:06:13 +0200 Subject: [PATCH] Remove explicit EFI subfolder copy when creating a FAT partition In order to properly copy rmc.db and other EFI partition contents, remove explicit EFI subfolder copy and instead copy all boot/ contents to the EFI partition. Signed-off-by: Jussi Laako --- meta-refkit/lib/image-dsk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta-refkit/lib/image-dsk.py b/meta-refkit/lib/image-dsk.py index b41337f31d..2bddc5f9da 100644 --- a/meta-refkit/lib/image-dsk.py +++ b/meta-refkit/lib/image-dsk.py @@ -44,7 +44,9 @@ def populate_rawcopy(src, dst): def populate_vfat(src, dst): """Create and populate a FAT partition, out of a root directory .""" check_call(['mkdosfs', dst]) - check_call(['mcopy', '-i', dst, '-s', src + '/EFI', '::/']) + """this requires shell expansion for wildcard + check_call(['mcopy', '-i', dst, '-s', src + '/*', '::/'])""" + os.system('mcopy -i ' + dst + ' -s ' + src + '/* ::/') def populate_ext4(src, dst):