diff options
author | Chee Yang Lee <chee.yang.lee@intel.com> | 2021-02-02 13:43:16 +0800 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2021-03-24 04:30:32 -1000 |
commit | 3be53035c567c06a09a36d68c41393482bd4789b (patch) | |
tree | eae7fe4cd33482d0b75fd1bf168ff3afde7b0073 | |
parent | 060587ae477d785db017f4d8a2152206c258da42 (diff) | |
download | openembedded-core-contrib-3be53035c567c06a09a36d68c41393482bd4789b.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.
Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6eaca9cf20c42501fba27dea3a6446bad948e859)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-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 umount /tgt_root +# copy any extra files needed for ESP +if [ -d /run/media/$1/esp ]; then + cp -r /run/media/$1/esp/* /boot +fi + # Copy kernel artifacts. To add more artifacts just add to types # For now just support kernel types already being used by something in OE-core for types in bzImage zImage vmlinux vmlinuz fitImage; do |