Coder Social home page Coder Social logo

Comments (5)

ejoerns avatar ejoerns commented on June 1, 2024

As written in the documentation, pre-install hooks are supported by RAUC.

To find out why it does not seem to work in your case, it would be helpful to have the slot configuration and a log file of the RAUC install that fails to run the pre-installer.

Note that if you run the above hook file, you will not be able to differenciate between the pre-install and post-install hook, because they print the exactly same message (pre device) ;)

from rauc.

Blackrose avatar Blackrose commented on June 1, 2024

I had fixed the print message.And the first line print the $1 argument, it only displays slot-install and slot-post-install.I will view log to find out the reason.

from rauc.

Blackrose avatar Blackrose commented on June 1, 2024

I changed bootloader slot use 'pre-install' hook only.It's work well.While the 'pre-install' cannot work with 'install' hook set in the slot.

from rauc.

ejoerns avatar ejoerns commented on June 1, 2024

Oh yes, you are totally right. Seems I didn't recognize that when scanning your example.
But, it is clearly noted in the documentation (http://rauc.readthedocs.io/en/latest/using.html#slot-hooks, section 'Install Hook'.

The install hook will replace the entire default installation process for the target slot of the image it was specified for. Note that when having the install hook enabled, pre- and post-install hooks will not be executed.

Thus, the valid solution if you want a totally custom installation would be to use the 'install' hook and do it all from there manually, or, if you want the default installer to handle the image copying, then only use the pre-install hook as you did.

from rauc.

Blackrose avatar Blackrose commented on June 1, 2024

Thanks again.I will try to use 'install' hook.

from rauc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.