Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please help "install fail issue" #12

Open
phyljh opened this issue Aug 11, 2023 · 1 comment
Open

Please help "install fail issue" #12

phyljh opened this issue Aug 11, 2023 · 1 comment

Comments

@phyljh
Copy link

phyljh commented Aug 11, 2023

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?

@phyljh
Copy link
Author

phyljh commented Aug 11, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant