-
Notifications
You must be signed in to change notification settings - Fork 199
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
how to select install slot on A/B boot when booting from usb (rauc.external) #1383
Comments
@mifran23 At the moment, there is no real option to select the slot group if multiple groups are available. The 'logic' that selects the slot group to update just uses the first element if multiple are found. One solution to this could be to have a look at the installation times and pick the slot group with the oldest installation date as the installation candidate. Another would be to allow explicit installation of all slot groups at once. To better understand your needs, may I ask what the motivation is to use RAUC during bootstrapping? |
@ejoerns Thank you for looking into this. The RAUC bundle is qualified by our QA team. |
+1 to this. Heck, I'd personally be happy if all I got was the capability for It's unpleasant to have to wrangle multiple types of image for different scenarios, when it seems trivial to just have the capability to pass bundles about and use them for both updates and for provisioning/emergency recovery. |
@pelrun So you also have the need to provision both A and B in a factory or recovery case, correct?
I'd say |
Yeah, I've since realised that as I continue to play about with things. Your previous suggestion seems useful - rather than always return the first inactive slot encountered, to return one with the oldest installation timestamp (or with no timestamp.) I can easily run the install a couple of times in succession to ensure that all the slots are provisioned. Actually already poking at |
For installing all slots, I realized we have an RFE Issue already:
You might want to have a look at https://github.com/ejoerns/rauc/tree/topic/abc-update first. We also had similar ideas in other issues already. |
I've now cleaned up and finalized my patches a bit and provided #1525 as a potential solution to this. |
I had tried out your branch and it neatly solved the problem on my end. Thanks! |
On initial setup of an A/B System we boot over usb (rauc.external set in cmdline) setup the partitions and then try to install both slot via
rauc install bundle.raucb
This installs the bundle in one of the slots. But I didn't find a way to select the other slot.
I tried to get the other slot selected by marking good the slot that got installed.
I even switched the partitions in /etc/rauc/system.conf.
But still the same partitions get flashed.
It seems like the changes in system.conf had no efect. Even after deleting the file install to the first slot works fine.
I know I can mount the boundle and install the partitions one by one.
But then I have to do the changes normaly done by hook by hand.
And if the hooks get changed I have to change the install script also.
So is it possible to change the slot for
rauc install bundle.raucb
?The text was updated successfully, but these errors were encountered: