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

How to use RAUC_SLOT_rootfs[rename] ? #368

Open
leon-anavi opened this issue Mar 6, 2025 · 0 comments
Open

How to use RAUC_SLOT_rootfs[rename] ? #368

leon-anavi opened this issue Mar 6, 2025 · 0 comments

Comments

@leon-anavi
Copy link

Hi,

While working on the RAUC integration for STM32MP157F-DK2 and other STM32MP embedded Linux devices, I had to set IMAGE_MACHINE_SUFFIX="-${DISTRO}-stm32mp15-disco" in the RAUC bundle.

Now I am trying to use RAUC_SLOT_rootfs[rename] instead but I am running into a behavior that looks like a bug in class classes-recipe/bundle.bbclass from layer meta-rauc. In the recipe I have set:

RAUC_SLOT_rootfs[rename] = "st-image-core-${DISTRO}-${MACHINE}.rootfs.ext4"

The result is the following note and error:

NOTE: adding image to bundle dir: 'st-image-core-openstlinux-weston-stm32mp15-disco.rootfs.ext4'
ERROR: Failed to find source st-image-core-stm32mp15-disco.rootfs.ext4

In bundle.bbclass variable imgname is used to print the NOTE and the value matches RAUC_SLOT_rootfs[rename]. But after that for the ERROR variable imgsource is used. Variable imgsource has a different value from RAUC_SLOT_rootfs[rename] and as a result it points to a file that doesn't exist in the particular case.

I am testing on Scarthgap but this particular code in the bundle.bbclass looks the same in master.

Am I missing something or doing anything wrong with RAUC_SLOT_rootfs[rename] ?

@leon-anavi leon-anavi changed the title RAUC_SLOT_rootfs[rename] How to use RAUC_SLOT_rootfs[rename] ? Mar 6, 2025
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