diff options
author | Chee Yang Lee <chee.yang.lee@intel.com> | 2021-02-02 13:43:16 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-09 08:56:11 +0000 |
commit | d6b4d57e6287a127cdaa54272b9629fc37e6cbe5 (patch) | |
tree | 4cdbdc5de965c5f7bf48bbc62251c5026cf97cb3 /meta | |
parent | 73befa8f413090ec0d4eba45efe51303b25b0004 (diff) | |
download | poky-d6b4d57e6287a127cdaa54272b9629fc37e6cbe5.tar.gz |
initrdscripts: init-install-efi.sh install extra files for ESP
Currently the install script copy only few hard coded item while
setting up target ESP, kernel artifacts, all .efi in EFI/BOOT,
grub & boot cfg and loader.conf.
While ESP can be much complex, eg: contain multiple initrd.
Add a ESP folder to carry any other files to setup onto ESP.
(From OE-Core rev: 6eaca9cf20c42501fba27dea3a6446bad948e859)
Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install-efi.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh index b6855b5aac..f667518b89 100644 --- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh +++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh | |||
@@ -279,6 +279,11 @@ fi | |||
279 | 279 | ||
280 | umount /tgt_root | 280 | umount /tgt_root |
281 | 281 | ||
282 | # copy any extra files needed for ESP | ||
283 | if [ -d /run/media/$1/esp ]; then | ||
284 | cp -r /run/media/$1/esp/* /boot | ||
285 | fi | ||
286 | |||
282 | # Copy kernel artifacts. To add more artifacts just add to types | 287 | # Copy kernel artifacts. To add more artifacts just add to types |
283 | # For now just support kernel types already being used by something in OE-core | 288 | # For now just support kernel types already being used by something in OE-core |
284 | for types in bzImage zImage vmlinux vmlinuz fitImage; do | 289 | for types in bzImage zImage vmlinux vmlinuz fitImage; do |