]> code.ossystems Code Review - openembedded-core.git/commitdiff
initrdscripts: init-install-efi.sh install extra files for ESP
authorChee Yang Lee <chee.yang.lee@intel.com>
Tue, 2 Feb 2021 05:43:16 +0000 (13:43 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 9 Feb 2021 08:52:09 +0000 (08:52 +0000)
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>
meta/recipes-core/initrdscripts/files/init-install-efi.sh

index b6855b5aac0f0a59093249386c3fcac4bd504f91..f667518b8953aea4b4d80e5abc85242e61a5ad90 100644 (file)
@@ -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