aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChee Yang Lee <chee.yang.lee@intel.com>2019-06-20 09:59:00 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2019-06-20 10:03:55 +0800
commitec0e7189cd6be82954eacc7ba109985ac0ac852f (patch)
treec5aaefe6ee6330e214f6ca52b2d39a95cf2a6cce
parent0b3083d115ad644d46826be181617c6d11cbeda8 (diff)
downloadmeta-intel-ec0e7189cd6be82954eacc7ba109985ac0ac852f.tar.gz
meta-intel-ec0e7189cd6be82954eacc7ba109985ac0ac852f.tar.bz2
meta-intel-ec0e7189cd6be82954eacc7ba109985ac0ac852f.zip
wic: add image-installer.wks.in
This wks.in create image that perform installation similar to hddimg. Partition in ext4 format allow rootfs size to be greater than hddimg limit which is 4GB. To build simple installer image, 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 \ systemd-bootx64.efi;EFI/BOOT/bootx64.efi \ ${IMAGE_ROOTFS}/boot/loader/loader.conf;loader/loader.conf \ ${IMAGE_ROOTFS}/boot/loader/entries/boot.conf;loader/entries/boot.conf \ ${IMGDEPLOYDIR}/${IMAGE_BASENAME}-${MACHINE}.ext4;rootfs.img \ " Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--wic/image-installer.wks.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/wic/image-installer.wks.in b/wic/image-installer.wks.in
new file mode 100644
index 00000000..4de318f6
--- /dev/null
+++ b/wic/image-installer.wks.in
@@ -0,0 +1,8 @@
+# create an installer disk image
+# populate content to install using IMAGE_BOOT_FILES
+
+part /boot --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER},title=install,label=install-efi,initrd=microcode.cpio;${INITRD_IMAGE_LIVE}-${MACHINE}.${INITRAMFS_FSTYPES}" --ondisk sda --label install --active --align 1024 --use-uuid
+
+part / --source bootimg-partition --ondisk sda --fstype=ext4 --label image --use-uuid --align 1024
+
+bootloader --ptable gpt --timeout=5 --append="rootwait ${APPEND}"