[OE-core] [PATCH RFC 11/18] wic: add wks file to make use of new bootfs functionality

California Sullivan california.l.sullivan at intel.com
Tue Dec 19 22:58:24 UTC 2017


With the postprocess command and installation into /boot/ in place, we
can use wic to create an EFI-compatible image without it having any
knowledge of the kernel or bootloader.

Signed-off-by: California Sullivan <california.l.sullivan at intel.com>
---
 scripts/lib/wic/canned-wks/efi-bootdisk.wks.in | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 scripts/lib/wic/canned-wks/efi-bootdisk.wks.in

diff --git a/scripts/lib/wic/canned-wks/efi-bootdisk.wks.in b/scripts/lib/wic/canned-wks/efi-bootdisk.wks.in
new file mode 100644
index 00000000000..c9d7aa5761e
--- /dev/null
+++ b/scripts/lib/wic/canned-wks/efi-bootdisk.wks.in
@@ -0,0 +1,6 @@
+# based off of refkit's refkit-directdisk.wks.in kickstart template
+# uses the image's boot directory to populate a vfat boot partition,
+# which works with EFI.
+bootloader --ptable gpt
+part /boot --source rootfs --rootfs-dir=${IMAGE_BOOTFS} --fstype=vfat --label msdos --active --align 1024 --use-uuid
+part / --source rootfs --fstype=ext4 --label root --align 1024 --uuid ${DISK_SIGNATURE_UUID}
-- 
2.14.3




More information about the Openembedded-core mailing list