You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
@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.
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.
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.
The text was updated successfully, but these errors were encountered: