Skip to contentSkip to conversation

initrdscripts: init-install-efi.sh install extra files for ESP

PATCH Lee Chee Yang 1 participant 1 message Feb 8, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

ping

Quoted 39 lines

-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Lee Chee Yang
Sent: Tuesday, 2 February, 2021 1:43 PM
To: [email protected]
Subject: [OE-core] [PATCH] initrdscripts: init-install-efi.sh install extra files for ESP

From: Chee Yang Lee <[email protected]>

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.

---
meta/recipes-core/initrdscripts/files/init-install-efi.sh | 5 +++++

1 file changed, 5 insertions(+)
meta/recipes- renamed from meta/recipes-core/initrdscripts/files/init-install-efi.sh +0 -0

core/initrdscripts/files/init-install-efi.sh
index b6855b5aac..f667518b89 100644

meta/recipes-core/initrdscripts/files/init-install-efi.sh +0 -0
@@ -279,6 +279,11 @@ fi
 

umount /tgt_root

meta/recipes-core/initrdscripts/files/init-install-efi.sh +5 -0
+# 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
--
2.17.1