From daac601e4db99d7d8d7322b78a910f8a36990be7 Mon Sep 17 00:00:00 2001 From: Chee Yang Lee Date: Tue, 17 Sep 2019 11:57:31 +0800 Subject: README: include steps to build installer image Signed-off-by: Chee Yang Lee Signed-off-by: Anuj Mittal --- README | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'README') diff --git a/README b/README index fef16673..bac2e0f5 100644 --- a/README +++ b/README @@ -34,6 +34,7 @@ Table of Contents II. Building and booting meta-intel BSP layers a. Building the intel-common BSP layers b. Booting the intel-common BSP images + c. Building the installer image III. Technical Miscellany Benefits of using meta-intel The intel-common kernel package architecture @@ -197,6 +198,32 @@ characters), try doing this first: $ dd if=/dev/zero of=/dev/sdf bs=1M count=512 +c. Building the installer image +----------------------------------------------- + +If you plan to install your image to your target machine, you can build a wic +based installer image instead of default wic image. To build it, you need to +add below configuration to local.conf : + + WKS_FILE = "image-installer.wks.in" + IMAGE_FSTYPES_append = " ext4" + IMAGE_TYPEDEP_wic = "ext4" + INITRD_IMAGE_LIVE="core-image-minimal-initramfs" + do_image_wic[depends] += "${INITRD_IMAGE_LIVE}:do_image_complete" + do_rootfs[depends] += "virtual/kernel:do_deploy" + IMAGE_BOOT_FILES_append = "\ + ${KERNEL_IMAGETYPE} \ + microcode.cpio \ + ${IMGDEPLOYDIR}/${IMAGE_BASENAME}-${MACHINE}.ext4;rootfs.img \ + ${@bb.utils.contains('EFI_PROVIDER', 'grub-efi', 'grub-efi-bootx64.efi;EFI/BOOT/bootx64.efi', '', d)} \ + ${@bb.utils.contains('EFI_PROVIDER', 'grub-efi', '${IMAGE_ROOTFS}/boot/EFI/BOOT/grub.cfg;EFI/BOOT/grub.cfg', '', d)} \ + ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', 'systemd-bootx64.efi;EFI/BOOT/bootx64.efi', '', d)} \ + ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', '${IMAGE_ROOTFS}/boot/loader/loader.conf;loader/loader.conf ', '', d)} \ + ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', '${IMAGE_ROOTFS}/boot/loader/entries/boot.conf;loader/entries/boot.conf', '', d)} " + +Burn the wic image onto USB flash device, insert the device to target machine +and power on. This should start the installation process. + III. Technical Miscellany ========================= -- cgit v1.2.3-54-g00ecf