wic: add image-installer.wks.in
PATCH v2 1/1 wic: add image-installer.wks.in
From: Chee Yang Lee <[email protected]>
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 \
"--- wic/image-installer.wks.in | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 wic/image-installer.wks.in
wic/image-installer.wks.in new file +8 -0
@@ -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=${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}"
Signature · 1 line
2.7.4
PLEASE IGNORE THIS EMAIL
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of [email protected]
Sent: Friday, May 31, 2019 4:10 PM
To: [email protected]
Subject: [OE-core] [meta-intel][PATCH v2] wic: add image-installer.wks.in
From: Chee Yang Lee <[email protected]>
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 \
"--- wic/image-installer.wks.in | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 wic/image-installer.wks.in
wic/image-installer.wks.in new file +8 -0
@@ -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=${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}" --
2.7.4
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core