diff options
| author | Darren Hart <dvhart@linux.intel.com> | 2014-07-16 14:16:00 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-19 00:09:00 +0100 |
| commit | da682642bae01e9717e5afdad4db62f4c7f406db (patch) | |
| tree | 5fa290f5b010f717bd0e752006c88bd41fad9005 | |
| parent | 88045c9db784d56cfd9e9d002af3c94d2a25defe (diff) | |
| download | poky-da682642bae01e9717e5afdad4db62f4c7f406db.tar.gz | |
mkefidisk.sh: Copy the EFI dir recursively
Rather than only copying the EFI/BOOT dir, copy the entire EFI dir
recursively. This allows for custom configurations to be enabled
implicitly with no extra work required.
(From OE-Core rev: f6f243bff4fa7c0e876a506a7013c86e0141556c)
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rwxr-xr-x | scripts/contrib/mkefidisk.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh index 9b130416a1..98c43f5d87 100755 --- a/scripts/contrib/mkefidisk.sh +++ b/scripts/contrib/mkefidisk.sh | |||
| @@ -264,11 +264,9 @@ umount $HDDIMG_ROOTFS_MNT | |||
| 264 | 264 | ||
| 265 | echo "Preparing boot partition..." | 265 | echo "Preparing boot partition..." |
| 266 | EFIDIR="$BOOTFS_MNT/EFI/BOOT" | 266 | EFIDIR="$BOOTFS_MNT/EFI/BOOT" |
| 267 | mkdir -p $EFIDIR | ||
| 268 | |||
| 269 | cp $HDDIMG_MNT/vmlinuz $BOOTFS_MNT | 267 | cp $HDDIMG_MNT/vmlinuz $BOOTFS_MNT |
| 270 | # Copy the efi loader and configs (booti*.efi and grub.cfg if it exists) | 268 | # Copy the efi loader and configs (booti*.efi and grub.cfg if it exists) |
| 271 | cp $HDDIMG_MNT/EFI/BOOT/* $EFIDIR | 269 | cp -r $HDDIMG_MNT/EFI $BOOTFS_MNT |
| 272 | # Silently ignore a missing gummiboot loader dir (we might just be a GRUB image) | 270 | # Silently ignore a missing gummiboot loader dir (we might just be a GRUB image) |
| 273 | cp -r $HDDIMG_MNT/loader $BOOTFS_MNT 2> /dev/null | 271 | cp -r $HDDIMG_MNT/loader $BOOTFS_MNT 2> /dev/null |
| 274 | 272 | ||
