From: chee.yang.lee@intel.com
To: openembedded-core@lists.openembedded.org
Subject: [meta-intel][PATCH v2] wic: add image-installer.wks.in
Date: Fri, 31 May 2019 16:09:44 +0800 [thread overview]
Message-ID: <1559290184-54222-1-git-send-email-chee.yang.lee@intel.com> (raw)
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
next reply other threads:[~2019-05-31 8:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-31 8:09 chee.yang.lee [this message]
2019-05-31 8:10 ` [meta-intel][PATCH v2] wic: add image-installer.wks.in Lee, Chee Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1559290184-54222-1-git-send-email-chee.yang.lee@intel.com \
--to=chee.yang.lee@intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox