!aecPwabKihLwjebRfb:matrix.org

#rauc

55 Members
Robust Auto Update Controller | https://github.com/rauc/rauc5 Servers

Load older messages


SenderMessageTime
17 Apr 2024
@libera_shoragan:stratum0.orgshoragan?12:18:47
@libera_Jacmet:stratum0.orgJacmetshoragan: so parse the output of rauc info and check against what is in system.conf? I guess I could do that, but it would IMHO make more sense if rauc would do it for me12:19:07
@libera_Jacmet:stratum0.orgJacmetshoragan: currently not, just rauc install foo.raucb12:19:33
@ejoerns:matrix.orgejoerns'rauc info' also serves as a 'host' command. Thus it would not make sense to check the compatible there. 12:21:43
@ejoerns:matrix.orgejoerns Jacmet: So you have cases where the signature may be valid but the compatible not? 12:21:57
@libera_Jacmet:stratum0.orgJacmet ejoerns: ahh yes 12:22:14
@libera_Jacmet:stratum0.orgJacmet ejoerns: most likely not, but what is the point of compatible then in the end? 12:22:41
@libera_Jacmet:stratum0.orgJacmetI just tweaked my compatible in system.conf and wanted to verify that rauc info would complain about it12:23:17
@ejoerns:matrix.orgejoerns Jacmet: If you have different products but all signed with the same company key for example. In the end its more for additional safety and clarity of purpose anyway. 12:24:55
@libera_Jacmet:stratum0.orgJacmet ejoerns: as install does verify the compatible, you could imagine someone expecting to use it, E.G. if you have different board variants with the same signatures but some versions can not be installed on older units. I'm not doing something like that today, but it doesn't seem that far fetched to expect to be able to block such installations using the compatible 12:25:29
@ejoerns:matrix.orgejoerns Jacmet: Yes, I am aware that it might be used ;) It was more about finding out how your concrete use case looks like The better we know the purpose of a feature request, the easier it is to find a proper solution (or where the existing solutions might be sufficient in the end) :) 12:27:27
@libera_Jacmet:stratum0.orgJacmet ejoerns: the exact use case here is really trying to fit rauc into a system with certain legacy expectations, E.G. that install is explicitly split up in transfer, check, install. Transfer is easy to do outside rauc, but rauc info doesn't really do a full check given the compatible (and hooks) 12:29:53
@libera_shoragan:stratum0.orgshoragan note that with streaming, you can't separate those stages any more 12:31:26
@ejoerns:matrix.orgejoerns Jacmet: Note that for the case you described there is 'variant' support in RAUC which would at least allow to have bundles that install on different boar variants/revision with the same compatible. However, there is again no easy way to find out if an installation will succeed beforehand 12:31:29
@libera_shoragan:stratum0.orgshoragan and check isn't really needed, as a failed installation doesn't cause any harm 12:31:58
@libera_Jacmet:stratum0.orgJacmet so a "rauc check <bundle>" or "rauc verify <bundle>" would be handy. I don't really have an opinion of it it makes more sense to extend rauc info to check the compatible or add a --check-only flag to rauc install 12:32:03
@libera_Jacmet:stratum0.orgJacmet shoragan: true, but these devices also typically don't have a network connection so no big loss ;) 12:32:29
@libera_shoragan:stratum0.orgshoragana check could only find a small subset of issues12:32:35
* @libera_shoragan:stratum0.orgshoragan has to go12:32:50
@libera_Jacmet:stratum0.orgJacmetshoragan: agreed, you cannot guarantee that the install will always succeed if the check did, but you can at least check that the bundle is well formed (E.G. is a rauc file, signed by a trusted key, compatible matches, ..)12:33:45
@libera_shoragan:stratum0.orgshoraganif those are incorrect, the install will fail quickly12:34:05
@ejoerns:matrix.orgejoernsIndeed, we would have more things to check, like if the variant matches, if the required images are on board, etc. I am not sure where this should be done best or if it gives sufficient benefit over just trying and failing12:34:12
@ejoerns:matrix.orgejoernsWhat we try to improve is to improve checks during early installation so we can be quite sure we do the right thing once we switch the bootloader and override partition contents12:35:06
@ejoerns:matrix.orgejoerns(a bit over-improved :) )12:36:03
@libera_Jacmet:stratum0.orgJacmet;)12:36:43
@libera_Jacmet:stratum0.orgJacmet ejoerns: so then perhaps the most sensible solution is to add a mode to install that stops after those checks rather than extend rauc info? 12:37:32
@ejoerns:matrix.orgejoerns Jacmet: That's pretty close to a --dry-run mode that we discussed once. It depends on how you intend to use it. If it is possible to provide the right bundles for the right hardware, I'd always prefer this instead of checking too much on the target :) 12:42:25
@libera_Jacmet:stratum0.orgJacmet shoragan: that is true, but triggering an installation "too early" is a bit annoying as we often need to reboot at the end of a succesful installation, which breaks the communication with the host (E.G. there may be various microcontrollers that control power or similar low level stuff) 12:42:40
@libera_Jacmet:stratum0.orgJacmet ejoerns: indeed ;) 12:42:58
@ejoerns:matrix.orgejoerns Jacmet: Just as a side-note: you could also split installation and activation of an update if reboot is the major issue 12:45:09

Show newer messages


Back to Room ListRoom Version: