-
Notifications
You must be signed in to change notification settings - Fork 52
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
Adaptive update evaluation (via QEMUx86-64) #41
Comments
Could you run the rauc service with |
Sure, here you go.
|
Looks like there is an error that is hidden by a bug in error propagation. Had a short look at the code but could not figure out directly where this happens. Thus if you have the ability to attach a debugger and dump a trace of where this happens in code, that would be really helpful! |
I'm not familiar with gdb, hope this will help: BTW, I can complete install adaptive bundle when I enlarged root_a and root_b partition. For reproduce this issue with gdb hooked I have to reduce available size of partition under around 31MB, FYR. |
@jungte many thanks for providing the additional information! You run into https://github.com/rauc/rauc/blob/ab94e691745159bf1f3de2c241e04c59f8ba8f0d/src/utils.c#L428 This should be fixed. Would you like to make a PR for this or should I? |
The detection and handling of too small block device sizes could also be done much earlier I guess since at least in the raw copy cases we could know the size difference between our image and our target device in advance. |
@ejoerns I would like to make a PR for this issue and will do it later today. :) |
I encountered an issue when I install qemu-demo-bundle-qemux86-64.raucb
(w/RAUC_SLOT_rootfs[adaptive] = "block-hash-index")
Any suggestion? Thanks!
root@qemux86-64:/data# rauc install qemu-demo-bundle-qemux86-64.raucb
installing
0% Installing
0% Determining slot states
20% Determining slot states done.
20% Checking bundle
20% Verifying signature
40% Verifying signature done.
40% Checking bundle done.
40% Checking manifest contents
60% Checking manifest contents done.
60% Determining target install group
80% Determining target install group done.
80% Updating slots
80% Checking slot efi.0
85% Checking slot efi.0 done.
85% Copying image to efi.0
90% Copying image to efi.0 done.
90% Checking slot rootfs.1
95% Checking slot rootfs.1 done.
95% Copying image to rootfs.1
[ 183.464339] traps: installer[279] trap int3 ip:7f8cc750e73a sp:7f8cc616d8e0 error:0 in libglib-2.0.so.0.7200.3[7f8cc74d0000+8c000] RAUC service disappeared
D-Bus error while installing '/data/qemu-demo-bundle-qemux86-64.raucb\'
root@qemux86-64:/data# rauc info qemu-demo-bundle-qemux86-64.raucb
rauc-Message: 07:42:52.557: Using central status file /data/central.raucs
rauc-Message: 07:42:52.569: valid /etc/rauc/system.conf found, using it
rauc-Message: 07:42:52.580: Reading bundle: /data/qemu-demo-bundle-qemux86-64.raucb
rauc-Message: 07:42:52.665: Verifying bundle signature...
rauc-Message: 07:42:52.722: Verified inline signature by 'O = Test Org, CN = Test Org Development-1'
Compatible: 'qemu86-64 demo platform'
Version: '1.0'
Description: 'qemu-demo-bundle version 1.0-r0'
Build: '20221025045346'
Hooks: ''
Bundle Format: verity
Verity Salt: 'fdb4b0259a2d0e51051dfbfd2b16ae2d1d54fb757b0835c8e3aa7ab37305213e'
Verity Hash: '08fe228e55dc76c7545b79a31039d897896512bf76742faea166b0ff5dba8fea'
Verity Size: 389120
2 Images:
[efi]
Filename: efi-boot.vfat
Checksum: c2e30acd778e466139243389b6f5497b5d5a946504fcbd2d89a1f4229d054c43
Size: 33572864
Hooks:
[rootfs]
Filename: core-image-minimal-qemux86-64.ext4
Checksum: 2aee25f486b58e6976aeb3d8fb15ef62c30e084492405722a6deff43402e729b
Size: 186052608
Hooks:
Adaptive: block-hash-index
Certificate Chain:
.
.
.
The text was updated successfully, but these errors were encountered: