Open phyljh opened 1 year ago
I have built wic image and flashed it to USB. I inserted below code in local.conf like guide.
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}${IMAGE_VERSION_SUFFIX}${IMAGE_NAME_SUFFIX}.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)} "
And I tried to install on NUC pc after inserting usb memory. But Install failed with below logs.
Formatting swap partition...(/dev/nvme0n1p3) Setting up swapspace version 1, size = 12802060288 bytes EXT4-fs (nvme0n1p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled. loop0: detected capacity change from 0 to 4917350 mount: mounting /dev/loop0 on /src_root failed: Invalid argument Target install-efi failed
What should I check for this issue?
I found that the size of wic file is much less than ext4 file. I think that it is related to the sequence of do_image_ext4 and do_image_wic. Is there a way that do_image_wic is executed after do_image_ext4 completed?
I have built wic image and flashed it to USB. I inserted below code in local.conf like guide.
And I tried to install on NUC pc after inserting usb memory. But Install failed with below logs.
What should I check for this issue?