Comments (5)
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.
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.
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.
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.
Thanks again.I will try to use 'install' hook.
from rauc.
Related Issues (20)
- Detailed progress reporting not working with adaptive update bundles
- Installation error: Failed updating slot boot.0: failed to splice data to tar: Broken pipe HOT 5
- Failed mounting bundle: failed to resolve 'nbd' HOT 13
- Cannot create a large amount of device keys for encrypted bundles HOT 5
- code signing purpose check fails with OpenSSL 3.2 HOT 6
- [PATCH] Double-free crash when calling InstallBundle twice (successfully or otherwise) HOT 5
- Rauc service core dump on 1.11 HOT 4
- failed to load kernel modules after a+b update HOT 3
- no root device or rauc slot info in /proc/cmdline HOT 9
- Bundle creation problem with key HOT 4
- Streaming journalctl -afu rauc piles up messages
- boot slot detection failed for custom bootloader HOT 3
- Using /dev/disk/by-label does not work after flashing disk HOT 13
- Service fails to start with an assertion error in r_slot_status_load() after updating from v1.10.1 to v1.11.2 HOT 4
- how to select install slot on A/B boot when booting from usb (rauc.external) HOT 2
- Release key is going to expire soon HOT 1
- Support installing and running tests on a target HOT 7
- Update single file using RAUC
- test: boot_switch: possible out of bound read and test fail HOT 6
- migrate pytest tests from pydbus to dasbus
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rauc.