* [meta-intel][PATCH v2] wic: add image-installer.wks.in
@ 2019-05-31 8:09 chee.yang.lee
2019-05-31 8:10 ` Lee, Chee Yang
0 siblings, 1 reply; 2+ messages in thread
From: chee.yang.lee @ 2019-05-31 8:09 UTC (permalink / raw)
To: openembedded-core
From: Chee Yang Lee <chee.yang.lee@intel.com>
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>
---
wic/image-installer.wks.in | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100644 wic/image-installer.wks.in
diff --git a/wic/image-installer.wks.in b/wic/image-installer.wks.in
new file mode 100644
index 0000000..58bcfd5
--- /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=${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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-intel][PATCH v2] wic: add image-installer.wks.in
2019-05-31 8:09 [meta-intel][PATCH v2] wic: add image-installer.wks.in chee.yang.lee
@ 2019-05-31 8:10 ` Lee, Chee Yang
0 siblings, 0 replies; 2+ messages in thread
From: Lee, Chee Yang @ 2019-05-31 8:10 UTC (permalink / raw)
To: Lee, Chee Yang, openembedded-core@lists.openembedded.org
PLEASE IGNORE THIS EMAIL
-----Original Message-----
From: openembedded-core-bounces@lists.openembedded.org <openembedded-core-bounces@lists.openembedded.org> On Behalf Of chee.yang.lee@intel.com
Sent: Friday, May 31, 2019 4:10 PM
To: openembedded-core@lists.openembedded.org
Subject: [OE-core] [meta-intel][PATCH v2] wic: add image-installer.wks.in
From: Chee Yang Lee <chee.yang.lee@intel.com>
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>
---
wic/image-installer.wks.in | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100644 wic/image-installer.wks.in
diff --git a/wic/image-installer.wks.in b/wic/image-installer.wks.in new file mode 100644 index 0000000..58bcfd5
--- /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=${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
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-31 8:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-31 8:09 [meta-intel][PATCH v2] wic: add image-installer.wks.in chee.yang.lee
2019-05-31 8:10 ` Lee, Chee Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox