[DD][morty] Sota/ostree broken with migration to morty
Description
Environment
relates to
Activity
Jan-Simon Moeller October 12, 2017 at 11:22 AM
Closing.
Leon Anavi October 10, 2017 at 10:39 AM
Hi,
I am closing the issue because meta-updater was recently updated and tested successfully in the manifest in the Dab branch that became 4.0.2.
Best regards,
Leon
Leon Anavi January 12, 2017 at 1:38 PM
Hi @Jan-Simon Moeller,
Thank you for the provided details. I am familiar with wic so I am exploring the information about it and the openembeddeded kickstart file (.wks) at the Mega-Manual.
Best regards,
Leon
Jan-Simon Moeller January 12, 2017 at 1:27 PM
We have 2 tasks here:
make sure the sota-initrd still works with the image commands. It should, as netboot works, but better check it.
fix the sdcad-image creation process:
Up to now we had to define the sdcard image process per board in a class. This is cumberstone, error-prone and work-intensive.
Instead of fixing the image classes, we should better investigate how to do it with wic. The advantage is that we do not need image-classes per board anymore. Just the wks file per board which is less work to maintain. On the flip side we need to find-out if wic / wks can already produce the necessary disk layouts. For most boards (using mmcblk0p1 for boot and mmcblk0p2 for root) this is solved already. The cases where we need to adapt wic / wks is time that is spent best working upstream then.
ERROR: agl-demo-platform-1.0-r0 do_image_ostree: Function failed: do_image_ostree (log file is located at /home/scratch/user/git/AGL/build-from-repo/build-raspberrypi3/tmp/work/raspberrypi3-agl-linux-gnueabi/agl-demo-platform/1.0-r0/temp/log.do_image_ostree.4668) ERROR: Logfile of failure stored in: /home/scratch/user/git/AGL/build-from-repo/build-raspberrypi3/tmp/work/raspberrypi3-agl-linux-gnueabi/agl-demo-platform/1.0-r0/temp/log.do_image_ostree.4668 Log data follows: | DEBUG: Executing python function set_image_size | DEBUG: Python function set_image_size finished | DEBUG: Executing shell function do_image_ostree | WARNING: Data in /opt directory is not preserved by OSTree. Consider moving it under /usr | cp: cannot stat ‘/home/scratch/user/git/AGL/build-from-repo/build-raspberrypi3/tmp/deploy/images/raspberrypi3/initramfs-ostree-image-raspberrypi3.ext4.gz.u-boot’: No such file or directory | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_image_ostree (log file is located at /home/scratch/user/git/AGL/build-from-repo/build-raspberrypi3/tmp/work/raspberrypi3-agl-linux-gnueabi/agl-demo-platform/1.0-r0/temp/log.do_image_ostree.4668) ERROR: Task (/home/scratch/user/git/AGL/build-from-repo/meta-agl-demo/recipes-platform/images/agl-demo-platform.bb:do_image_ostree) failed with exit code '1' NOTE: Tasks Summary: Attempted 5985 tasks of which 70 didn't need to be rerun and 1 failed.
SOTA / ostree imaging needs to be fixed and also use the new mechanism introduced in morty (wks). See poky/scripts/lib/canned-wks/sdimage-bootpart.wks and scripts/wic as well as the documentation on wic.