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

Struggling to use RAUC_BUNDLE_EXTRA_FILES #364

Open
mortenboye opened this issue Jan 3, 2025 · 2 comments
Open

Struggling to use RAUC_BUNDLE_EXTRA_FILES #364

mortenboye opened this issue Jan 3, 2025 · 2 comments

Comments

@mortenboye
Copy link

mortenboye commented Jan 3, 2025

I've been using rauc successfully for some time, but am now trying to update to the latest.

In the past i've had this line in my recipe
RAUC_BUNDLE_EXTRA_FILES += "bootfiles"
because i have a post install script that needs to move some files into place.

However after updating rauc i now get this error:
Failed to create bundle: directories are not supported as bundle contents (bootfiles)
which i can see is a more recent change, by design: https://rauc.readthedocs.io/en/v1.12/faq.html#why-does-bundle-creation-fail-with-a-not-supported-as-contents-error

My issue is that it is not clear to me how to proceed from here. I can see the bootfiles folder and its contents being added to the tmp//bundle/ folder, but building fails with the above error.

I have tried specifying the individual files also
RAUC_BUNDLE_EXTRA_FILES += "bootfiles/file1 bootfiles/file2"
but the result is the same.

I would like to end up with a similar bundle structure as before.

@ejoerns
Copy link
Member

ejoerns commented Jan 4, 2025

@mortenboye An option would be to not use a subdirectory for these files but to put them plain into the bundle.

However, RAUC_BUNDLE_EXTRA_FILES currently does not support adding files from a deploy dir subdirectory like bootfiles this way. It explicitly creates the subdirectories inside the bundle. This might need to be changed if RAUC sticks to the current behavior.

How do you update the bootfiles in your post-install to ensure the update is fail-safe / atomic?

If the current bundle structure is mandatory for you, adding your use case to the discussion in rauc/rauc#1533 might make sense.

@Thomas-at
Copy link

Hello, I am also struggling with this exact behavior. Similar to mortenboye I am also trying to add multiple files from a directory inside the deploy directory to the bundle. I am not trying to add a directory itself or read from one recursively, just adding files from a dir.
RAUC_BUNDLE_EXTRA_FILES += "boot_scripts/file1 boot_scripts/file2"

Putting the files directly into the deploy dir (without the boot_scripts sub dir) works, but would quite clutter the deploy directory itself.

Simply allowing a path to a file would help.

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

3 participants